[go: up one dir, main page]

Skip to content
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

[python3] add features for readline and extensions #41183

Merged
merged 26 commits into from
Sep 30, 2024

Conversation

Neumann-A
Copy link
Contributor

as #39449 without the testing of modules

@LilyWangLL LilyWangLL self-assigned this Sep 26, 2024
@LilyWangLL LilyWangLL added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Sep 26, 2024
@LilyWangLL LilyWangLL added the info:reviewed Pull Request changes follow basic guidelines label Sep 27, 2024
if("extensions" IN_LIST FEATURES)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
endif()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm still surprised to see a feature changing library linkage. vcpkg normally requires this to be changed by the triplet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah normally yes but everything has it exception. In this case it is a downstream requirement that python is build as shared library if somebody plans to build an extension since otherwise you'll need to rebuild python itself with all extension linked in, and that only works if all extension itself are build as static libraries which nobody actual nobody does (the only reference i found was an old paraview blog but they went ahead and changed all builds to being cmake and i havent found a reference to that since). you cannot even switch extensions to be static libraries in e.g. meson.
So yes, it is strange but it has its own set of good reasons.

@BillyONeal BillyONeal merged commit c82f746 into microsoft:master Sep 30, 2024
16 checks passed
@BillyONeal
Copy link
Member

Thank you!

@Neumann-A Neumann-A deleted the fix-python-without-the-test branch October 1, 2024 08:46
]
},
"readline": {
"description": "Build with readline. Requires system readline to be installed",
Copy link
Contributor
@Osyotr Osyotr Oct 1, 2024

Choose a reason for hiding this comment

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

There's a readline port in vcpkg. Why does python need system readline?
UPD: readline is GPL licensed and python can use alternative implementations of readline.

Copy link
Contributor

Choose a reason for hiding this comment

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

readline is GPL licensed and python can use alternative implementations of readline.

Fine, but it creates an installation order issue if not depending on readline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants