-
-
Notifications
You must be signed in to change notification settings - Fork 262
Make the Unix build truly relocatable as CPython patch #923
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
base: main
Are you sure you want to change the base?
Conversation
cpython-unix/build-cpython.sh
Outdated
| "python_exe": "install/bin/python%s%s" % (sysconfig.get_python_version(), sys.abiflags), | ||
| "python_major_minor_version": sysconfig.get_python_version(), | ||
| "python_stdlib_platform_config": sysconfig.get_config_var("LIBPL").lstrip("/"), | ||
| "python_stdlib_platform_config": sysconfig.get_config_var("LIBPL"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this chane is adopted, update_sysconfig function from https://github.com/astral-sh/uv/blob/13e7ad62cb0d3ca8bf5eeee407d658d6d887d5f9/crates/uv-python/src/sysconfig/mod.rs#L44 can be removed altogether.
7436194 to
7bf5c53
Compare
92a4317 to
3cf1f6b
Compare
3cf1f6b to
d3adb64
Compare
| if info.get("build-mode") == "shared": | ||
| shared_dir = extra_metadata["python_config_vars"]["DESTSHARED"].strip("/") | ||
| shared_dir = extra_metadata["python_config_vars"]["DESTSHARED"] | ||
| shared_dir = 'install/lib' + shared_dir.split('install/lib', 1)[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DESTSHARED in PYTHON.json swithed from /install/lib/... to /build/out/python/install/lib so patch it here for tests to pass. Open to suggestions on how to better handle all such DIR in PYTHON.json.
See #857