Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do a (slightly) less insane thing to handle debundling #2925

Merged
merged 1 commit into from
Jun 24, 2015

Conversation

dstufft
Copy link
Member

@dstufft dstufft commented Jun 24, 2015

Previously we attempt to do some crazy things with import hooks in order to attempt to automatically alias normally installed dependencies as our vendored dependencies. This turned out to be fairly fragile, so instead we'll manually patch sys.modules to trigger the aliasing.

Closes #2896

Previously we attempt to do some crazy things with import hooks
in order to attempt to automatically alias normally installed
dependencies as our vendored dependencies. This turned out to be
fairly fragile, so instead we'll manually patch sys.modules to
trigger the aliasing.

As part of this, we also drop support for the
PIP_NO_VENDOR_FOR_DOWNSTREAM environment variable because it was
never fully supported and now that we have wheel caching, actually
using it could possibly trigger a bad wheel to be cached. The new
mechanism requires some light patching by downstream to opt into
the mechanism, so they can also easily remove all of the files
in pip/_vendor/ except for __init__.py.
dstufft added a commit that referenced this pull request Jun 24, 2015
Do a (slightly) less insane thing to handle debundling
@dstufft dstufft merged commit 8f828b4 into pypa:develop Jun 24, 2015
@dstufft dstufft deleted the less-insane-vendoring branch June 24, 2015 16:07
@warsaw
Copy link

warsaw commented Jun 24, 2015

LGTM though I haven't tested it. This should make things nicer for Debian since we'll only have to change DEBUNDLED and WHEEL_DIR and can drop the rest of our delta. I'll test it for real a little later, but don't wait for me to merge it.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants