Open mgorny opened 4 months ago
Does this happen if you use a PyPy installation not provided by the system packaging manager? I highly suspect this is due to Gentoo patches to the Python stdlib that do not account for this use case.
Yes, it does. I've even removed the system install, in case it affected it somehow.
I've done:
wget https://downloads.python.org/pypy/pypy3.10-v7.3.15-linux64.tar.bz2
tar -xf pypy3.10-v7.3.15-linux64.tar.bz2
export PATH=${PWD}/pypy3.10-v7.3.15-linux64/bin:$PATH
cd .../pip
nox -e test-pypy3 -- -x
Reproduced on Ubuntu:
docker run --rm -it ubuntu
apt-get -y update
apt-get install -y wget git nox
useradd -ms /bin/bash test
su - test
wget https://downloads.python.org/pypy/pypy3.10-v7.3.15-linux64.tar.bz2
tar -xf pypy3.10-v7.3.15-linux64.tar.bz2
export PATH=${PWD}/pypy3.10-v7.3.15-linux64/bin:$PATH
git clone https://github.com/pypa/pip
cd pip
virtualenv .venv
. .venv/bin/activate
pip install nox
nox -s test-pypy3 -- -x
Description
When running the pip's test suite with PyPy3.10 7.3.15 on Gentoo (and older versions), lots of tests fail. Upon investigating, I've discovered that
pip
operates on the test venv rather than the tempdirs, like it does for CPython.For example:
Note
bar
andfoo
packages. If I let the test suite run longer, soon enoughpip
actually gets uninstalled from there.Now, I don't know why it happens on our install and not on CI. We aren't patching PyPy in any relevant way. The install is reasonably straightforward. It involves, roughly:
I'd be glad to debug it if you give me some hints.
Expected behavior
Most of the tests passing, and not wreaking havoc in venv.
pip version
24.0
Python version
PyPy3.10 7.3.15
OS
Gentoo Linux amd64
How to Reproduce
emerge pypy3 nox
nox -e test-pypy3
Output
No response
Code of Conduct