Skip to content

Conversation

@mrmathematica
Copy link

See #857

"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"),
Copy link
Author

@mrmathematica mrmathematica Dec 16, 2025

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.

@mrmathematica mrmathematica force-pushed the relocatable.patch branch 2 times, most recently from 92a4317 to 3cf1f6b Compare January 13, 2026 03:36
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]
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant