Skip to content

Conversation

@MatthewwTN
Copy link

@MatthewwTN MatthewwTN commented Jan 6, 2026

Clever Coding Standards Agreement

Checklist

JIRA

DING-2770

Overview

The setup.py file was using pip's internal API (pip._internal.req.parse_requirements) to read requirements.txt. This causes build failures with modern pip (22+) and Python 3.13+ because:

  • pip's internal APIs are not available in isolated build environments
  • Modern pip uses build isolation by default
  • Results in ModuleNotFoundError: No module named 'pip' during package installation

This PR replaces the pip internal API usage with a simple function that reads requirements.txt directly, maintaining the same functionality while being compatible with all Python and pip versions.

Testing

  • Tested that requirements are correctly parsed and passed to install_requires

Rollout

Rollback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants