Aug-17-2019, 05:57 PM
I am running Debian Buster/Sid and have Pythons 2.7.16 and 3.7.2
System Python is by default /usr/lib/Pythonxx/dist-packages
PyPy installs by default into /usr/local/lib/Pythonxx/dist-packages.
After a April Debian update of system python, I began to install modules from PyPy with the occasional note that (presumably) system modules could not be removed during install, and I assumed all was well. sys.path shows that distro paths trump PyPy (site paths). Debian in its infinite idiocy decided to deprecate the 'site' prefix.
In fact, all was working well, and everything was peaches and cream
But THEN, the other day I grabbed some *new* python entries from the Debian repository, which appeared to mess with the system. Everything still appears to work, but
Or even, should I bother?
'import zope'
Works fine
This leads to a second question, assuming all is actually OK, or all I need to do is yank some duplicates out of the PyPy installed dirs that conflict with system (which itself should be fairly up to date).
I have the option of Debian updating the 3.72 system python to 3.82...
The thing is : will the thousands of already imported modules from PyPy be ignored in their /local/lib/python37/dist-packages dir?
Can I hack them into site.py?
(I have used this basic method with perlpath with good results!)
System Python is by default /usr/lib/Pythonxx/dist-packages
PyPy installs by default into /usr/local/lib/Pythonxx/dist-packages.
After a April Debian update of system python, I began to install modules from PyPy with the occasional note that (presumably) system modules could not be removed during install, and I assumed all was well. sys.path shows that distro paths trump PyPy (site paths). Debian in its infinite idiocy decided to deprecate the 'site' prefix.
In fact, all was working well, and everything was peaches and cream

But THEN, the other day I grabbed some *new* python entries from the Debian repository, which appeared to mess with the system. Everything still appears to work, but
buster:/# python3 -v # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone/app # destroy plone.app # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone/app # destroy plone.app # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone/app # destroy plone.app # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone/formwidget # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # destroy plone # possible namespace for /usr/local/lib/python3.7/dist-packages/plone # possible namespace for /usr/local/lib/python3.7/dist-packages/repoze # destroy repoze # possible namespace for /usr/local/lib/python3.7/dist-packages/repoze # destroy repoze # possible namespace for /usr/local/lib/python3.7/dist-packages/repoze # destroy repoze ... (lots more) # possible namespace for /usr/local/lib/python3.7/dist-packages/ruamel # possible namespace for /usr/local/lib/python3.7/dist-packages/scikits # possible namespace for /usr/local/lib/python3.7/dist-packages/scikits # destroy scikits # possible namespace for /usr/local/lib/python3.7/dist-packages/snowflake # destroy sphinxcontrib # destroy sphinxcontrib # destroy sphinxcontrib # possible namespace for /usr/local/lib/python3.7/dist-packages/z3c # destroy z3c # possible namespace for /usr/local/lib/python3.7/dist-packages/z3c/recipe # possible namespace for /usr/local/lib/python3.7/dist-packages/z3c # destroy z3c # possible namespace for /usr/local/lib/python3.7/dist-packages/z3c # destroy z3c # possible namespace for /usr/local/lib/python3.7/dist-packages/zc # possible namespace for /usr/local/lib/python3.7/dist-packages/zc # destroy zc # possible namespace for /usr/local/lib/python3.7/dist-packages/zc # destroy zc ... # possible namespace for /usr/local/lib/python3.7/dist-packages/zc # destroy zc # possible namespace for /usr/local/lib/python3.7/dist-packages/zc/recipe ... # possible namespace for /usr/local/lib/python3.7/dist-packages/zope/app # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope/app # destroy zope.app # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope/app ... # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zope # destroy zope # possible namespace for /usr/local/lib/python3.7/dist-packages/zopyx # possible namespace for /usr/local/lib/python3.7/dist-packages/zopyx # destroy zopyx # possible namespace for /usr/local/lib/python3.7/dist-packages/zopyx # destroy zopyx # possible namespace for /usr/local/lib/python3.7/dist-packages/zopyx/txng3 # possible namespace for /usr/local/lib/python3.7/dist-packages/zopyx/txng3 # destroy zopyx.txng3 # possible namespace for /usr/local/lib/python3.7/dist-packages/zopyx/txng3/ext # possible namespace for /usr/lib/python3/dist-packages/pyhoca # possible namespace for /usr/lib/python3/dist-packages/stetl # possible namespace for /usr/lib/python3/dist-packages/xstatic # possible namespace for /usr/lib/python3/dist-packages/xstatic # destroy xstatic # possible namespace for /usr/lib/python3/dist-packages/xstatic/pkg # possible namespace for /usr/lib/python3/dist-packages/xstatic # destroy xstatic # possible namespace for /usr/lib/python3/dist-packages/xstatic # destroy xstatic # possible namespace for /usr/lib/python3/dist-packages/xstatic/pkg # destroy xstatic.pkg # possible namespace for /usr/lib/python3/dist-packages/xstatic # destroy xstatic # possible namespace for /usr/lib/python3/dist-packages/xstatic # destroy xstatic # possible namespace for /usr/lib/python3/dist-packages/xstatic/pkg # destroy xstatic.pkg ..... # cleanup[2] removing zc.recipe # destroy zc.recipe # cleanup[2] removing zest # destroy zest # cleanup[2] removing zestreleaser # destroy zestreleaser # cleanup[2] removing zope # destroy zope # cleanup[2] removing zope.app # destroy zope.app # cleanup[2] removing zopyx # destroy zopyx # cleanup[2] removing zopyx.txng3 # destroy zopyx.txng3 # cleanup[2] removing zopyx.txng3.ext # destroy zopyx.txng3.ext # cleanup[2] removing paste # destroy paste # cleanup[2] removing pyhoca # destroy pyhoca # cleanup[2] removing stetl ... # cleanup[3] wiping posix # cleanup[3] wiping codecs # cleanup[3] wiping _codecs # cleanup[3] wiping encodings.aliases # cleanup[3] wiping encodings.utf_8 # cleanup[3] wiping encodings.latin_1 # cleanup[3] wiping importlib._bootstrap # cleanup[3] wiping sys # cleanup[3] wiping builtinsAny ideas on how to fix this mess?
Or even, should I bother?
'import zope'
Works fine
This leads to a second question, assuming all is actually OK, or all I need to do is yank some duplicates out of the PyPy installed dirs that conflict with system (which itself should be fairly up to date).
I have the option of Debian updating the 3.72 system python to 3.82...
The thing is : will the thousands of already imported modules from PyPy be ignored in their /local/lib/python37/dist-packages dir?
Can I hack them into site.py?
(I have used this basic method with perlpath with good results!)