-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
_distutils_hack
fails if called anything but get-pip.py
#3439
Comments
get-pip.py
get-pip.py
get-pip.py
get-pip.py
get-pip.py
- `setup-python` fix https://github.com/pypa/pip/issues/10809 - `select-hosts` fix on macos due to /etc/hosts permission issue - `setup-mac-brew` fix go permission error on clean - `fs-structure` do not output filenames, so `is-same` works on files - `chmod-helper` integrated into `fs-own` via `--permissions=...` and incorporated flags - `fs-own` now uses correct admin user and group on macos via `--admin` - `echo-eval` now outputs quoted arguments - `shims.bash` now includes `quote` shim for `@Q` - usage of this should improve bash v3 compat in more places - `fs-temp` now includes `--filename` and `--xdg` args, and removes directory argument for only `--directory=...` option - updated users of this script to make use of new flags - fix styling in `is-same`, `macos-(drive|state|theme)`
Pinging @jaraco, since this comes out of the distutils hack that setuptools has. |
get-pip.py
_distutils_hack
fails if called anything but get-pip.py
This comment was marked as off-topic.
This comment was marked as off-topic.
This is realistically an issue with setuptools' hack, so I've moved the issue over. |
I'm sorry I missed the ping. I have hundreds of unread messages in my email inbox, so would have gotten to it eventually (most likely). The distutils hack does have an exemption for pip to force it to use the stdlib distutils, but nothing specific to "get-pip.py", so I don't yet understand why the name of get-pip is relevant. |
Attempting to replicate the issue, I created this Dockerfile: FROM ubuntu:jammy
RUN apt update
RUN apt upgrade -y
RUN apt install -y python3 python3-distutils wget
RUN wget https://bootstrap.pypa.io/get-pip.py -O othername.py
CMD python3 othername.py --user Unfortunately, it works fine:
Therefore, the issue appears to be restricted to some other factor in the user's environment (Python version, pip version, OS, Homebrew patches, ...). Is it possible someone could create a Dockerfile that can replicate the issue? |
This comment was marked as off-topic.
This comment was marked as off-topic.
I've moved your comment to a new issue because it's a different case. |
I thought maybe my previous attempt to reproduce the issue was because of the lack of setuptools, so I tried this approach also, but unsuccessfully: FROM ubuntu:jammy
RUN apt update
RUN apt upgrade -y
RUN apt install -y python3 python3-distutils wget
RUN wget https://bootstrap.pypa.io/get-pip.py -O othername.py
RUN python3 othername.py --user
RUN python3 -m pip install setuptools
RUN python3 -m pip uninstall -y pip
CMD python3 othername.py --user |
If I've been the only person who has experienced this, you can happily ignore the issue, as my script implemented the naming solution which worked around the issue. |
I see now that in pypa/get-pip#140, the get-pip script was updated not to import setuptools, and that script was probably updated in get-pip.py in late January, so I suspect the root cause of this issue has been addressed. If any one else encounters this issue and can reproduce it (preferably in a Docker image) using the latest get-pip, please let us know. |
im still gettin an error on debian, i cannot see any correction here. edit: after installing edit: by using this link https://bootstrap.pypa.io/pip/2.7/get-pip.py, i finally have |
Description
Pip fails to install:
Expected behavior
it to work fine
pip version
latest
Python version
3.9.10
OS
21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64
How to Reproduce
this works fine:
this fails, which is common when say saving the installer to a randomly generated temp file:
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: