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.

As as consequence of this change, "python_stdlib_platform_config" will be absolute path instead of relative path. It looks we'd better adopt this change and change doc, instead of trying to force it to remain relative.

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.

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 = shared_dir[shared_dir.find("install"):]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see tests fail, and peiced this as a hack for pass. Would need some proper suggestion on what should be done for paths like those.

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