-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: disable use of pip install --python
for debundled pip
#861
Conversation
Looks like distutils import hack from |
I don't think this will fix it, but I'd not do |
Yes, it is. Unfortunately, I don't see how to fix it — in the end, the |
I think the remaining failures are flaky tests. |
What's the warning, out of curiosity? |
Basically this: >>> import distutils
>>> import pip
/usr/lib/python3.10/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils. Support for replacing an already imported distutils is deprecated. In the future, this condition will fail. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn( |
Pip is full of hacks - the build-isolation support is a mess, for example. IMO using Regardless, though, this seems fine. I'll try to fix the |
In the debundled pip version distributed on Gentoo systems, `pip install --python` is nonfunctional since it expects all of pip's dependencies to be present in the (empty) virtual environment. Detect this case by the removal of `pip._vendor` package, and use the "no valid outer pip" codepath. Bug: https://bugs.gentoo.org/934922
Thanks! |
pip install --python
on Gentoo debundled pippip install --python
for debundled pip
In the debundled pip version distributed on Gentoo systems,
pip install --python
is nonfunctional since it expects all of pip's dependencies to be present in the (empty) virtual environment. Detect this case by the removal ofpip._vendor
package, and use the "no valid outer pip" codepath.Bug: https://bugs.gentoo.org/934922