Skip to content

vendor: alias missing vendored submodules when DEBUNDLED#13814

Open
gcomneno wants to merge 4 commits intopypa:mainfrom
gcomneno:bugfix/vendor-aliases-debundled
Open

vendor: alias missing vendored submodules when DEBUNDLED#13814
gcomneno wants to merge 4 commits intopypa:mainfrom
gcomneno:bugfix/vendor-aliases-debundled

Conversation

@gcomneno
Copy link
Contributor

This updates pip._vendor.__init__ to alias additional vendored submodules under DEBUNDLED.

These submodules are imported from pip._internal but were not previously included in the vendored() alias list, which can impact downstream redistributors running pip in a debundled configuration.

No behavioral change for default (bundled) installs since this code path is only active when DEBUNDLED = True.

Tests:

  • python -m pytest -q tests/unit/test_vendor_aliases.py

@gcomneno
Copy link
Contributor Author

Fixes debundled-mode vendor aliasing: add missing vendored() entries for modules imported from pip._vendor (e.g. requests.adapters, packaging.tags, urllib3.*) and add a unit test to prevent regressions. This matters for downstream redistributors running pip in debundled setups.

@gcomneno
Copy link
Contributor Author

CI is green (all checks passed). The earlier macOS 3.13 failure was flaky (test_utils_retry timing). Ready for review.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments