-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Pip=20.2 break packages installing on pypy #8653
Comments
Same failures here:
|
Thanks for filing a clear bug report @dsp25no!
And thanks again for diagnosing the root cause! Much appreciated! ^>^ If I understand correctly, this only happens with Python 2.7 compatible version of PyPy. If that is not the case, please do provide an example/reproduction case for Python 3. |
Yes, with Python 3 compatible version of PyPy new version of pip work fine. |
Is there a fully compatible mechanism to get the pyc file path that would be generated for a file? I see:
I checked with pypy2.7-7.3.1 (on Linux), but it doesn't look like either is backported. PEP 3147 (introduced
which returned |
It seems to be a Unix-only problem. |
I could not reproduce with the pypy I downloaded from https://downloads.python.org/pypy. Where did you get |
pypy 2.7 on Debian and Ubuntu has PEP3147 implemented, to simplify the Debian package Including
|
Newer versions of `pip` do not work with `pypy` v2.7 on some platforms, ref pypa/pip#8653
Work around https://bugs.debian.org/962654 by reinstalling pip in the virutalenv before installing dependencies for pypy or pypy3. Work around pypa/pip#8653 by using a version of pip prior to 20.2 for pypy. FIXME: This may reinstall pip 0 or more times depending on the package dependencies (e.g. for pyproject.toml build requires, tox deps, package deps). No config option for post-create commands. May need to create a tox hook package to do this properly. Signed-off-by: Kevin Locke <[email protected]>
This issue is marked as "python 2 only". pip 21.0 dropped support for Python 2. Should this be closed? |
Environment
Description
If you try to install any package with
pip install
, you will have follow stacktrace:Expected behavior
Success package installation with
0
return code.How to Reproduce
More info
Regression happened in commit 2ece73c.
compileall
inCpython
generate compile files with names expected in functionpyc_output_path
, but withpypy
filenames will be another, like__pycache__/__init__.pypy-73.pyc
The text was updated successfully, but these errors were encountered: