rye
rye copied to clipboard
PyPy's internal packages leak through and pip-sync tries to uninstall them
On PyPy, rye sync
makes a bit of a mess
Found existing installation: cffi 1.15.1
Not uninstalling cffi at /Users/mitsuhiko/.rye/py/[email protected]/lib/pypy3.9, outside environment /Users/mitsuhiko/hello-pypy/.venv
Can't uninstall 'cffi'. No files were found to uninstall.
Found existing installation: greenlet 0.4.13
Not uninstalling greenlet at /Users/mitsuhiko/.rye/py/[email protected]/lib/pypy3.9, outside environment /Users/mitsuhiko/hello-pypy/.venv
Can't uninstall 'greenlet'. No files were found to uninstall.
Found existing installation: hello-pypy 0.1.0
Uninstalling hello-pypy-0.1.0:
Successfully uninstalled hello-pypy-0.1.0
Found existing installation: hpy 0.0.4.dev179+g9b5d200
Not uninstalling hpy at /Users/mitsuhiko/.rye/py/[email protected]/lib/pypy3.9, outside environment /Users/mitsuhiko/hello-pypy/.venv
Can't uninstall 'hpy'. No files were found to uninstall.
Found existing installation: readline 6.2.4.1
Not uninstalling readline at /Users/mitsuhiko/.rye/py/[email protected]/lib/pypy3.9, outside environment /Users/mitsuhiko/hello-pypy/.venv
Can't uninstall 'readline'. No files were found to uninstall.
It's because cffi and a few others are installed into lib/pypy3.9
and are picked up:
$ ryed run python -c 'import cffi; print(cffi.__file__)'
/Users/mitsuhiko/.rye/py/[email protected]/lib/pypy3.9/cffi/__init__.py
I also think that rye is now unable to install cffi
or any of such dependencies. These internal dependencies also show up in pip freeze:
$ ryed show --installed-deps
blinker==1.6.2
cffi==1.15.1
click==8.1.3
Flask==2.3.2
greenlet==0.4.13
# Editable Git install with no remote (hello-pypy==0.1.0)
-e /Users/mitsuhiko/hello-pypy
hpy==0.0.4.dev179+g9b5d200
importlib-metadata==6.6.0
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.2
readline==6.2.4.1
Werkzeug==2.3.4
zipp==3.15.0