-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
site.py removal in 49.0.0 breaks eggs installed outside system prefix #2295
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
Comments
Thanks for the report. The usage of I recommend that the project use Please let me know if that approach sounds viable (or if not, why) and how I can help. |
I had a go at implementing the sitecustomize.py modification you have described however it does not seem that the sitecustomize does not have any effect and is not executed at all. WIP is available from https://gitlab.freedesktop.org/ystreet/cerbero/-/commits/sitecustomize The reproduction instructions for this version require running
To wipe all built sources to start again:
For completeness, this is currently running on Arch Linux with Python 3.8.5 and python-setuptools 49.6.0 |
Could it be a typo in |
Ah, silly me 🤦 Now, the paths are in the wrong order:
I need the meson path before all the default system paths otherwise a system install of meson is going to be used instead :) |
The path ordering looks like it was taken care of within the original |
For now, we are going to reinstate the removed site.py until this is fixed: https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/655 |
Fixes python programs (like meson) from using libraries from incorrect places. Upstream reference: pypa/setuptools#2295 Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/307 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/655>
Fixes python programs (like meson) from using libraries from incorrect places. Upstream reference: pypa/setuptools#2295 Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/307 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/655>
Fixes python programs (like meson) from using libraries from incorrect places. Upstream reference: pypa/setuptools#2295 Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/307 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/655>
Fixes python programs (like meson) from using libraries from incorrect places. Upstream reference: pypa/setuptools#2295 Fixes: https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/307 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/655>
Uh oh!
There was an error while loading. Please reload this page.
site.py was removed in #2165 and first released with setuptools 49.0.0
This now causes installed eggs to not be loaded when installed to a prefix and pointed to by PYTHONPATH.
E.g. a concrete example of this use is with GStreamer's cerbero build system which installs the meson build system to a custom prefix to avoid messing up user/system installations. Relevant code for that is: https://gitlab.freedesktop.org/gstreamer/cerbero/-/blob/master/recipes/build-tools/meson.recipe#L30
PYTHONPATH is constructed by cerbero to point to the necessary path for the installed location (e.g.
PYTHONPATH=/path/to/cerbero/build/build-tools/lib/python3.8/site-packages/
). Without the site.py that is installed, this does not work anymore.One can reproduce by doing the following:
Reverting to python-setuptools < 49.0.0 is one workaround.
The text was updated successfully, but these errors were encountered: