Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cpython-unix/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ def python_build_info(
}

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.

extension_suffix = extra_metadata["python_config_vars"]["EXT_SUFFIX"]
entry["shared_lib"] = "%s/%s%s" % (shared_dir, extension, extension_suffix)

Expand Down