-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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] x64-linux-dynamic fixes #25995
Conversation
06db03e
to
5216ebf
Compare
54b5f1a
@Hoikas is it worth adding |
I'm not sure how widely the limited API library is used, TBH. If you have a use for it or it's trivial to make available, I think it would be a good thing to have as an option. |
It's already available but with the cost of |
@Adela0814 maybe |
ports/python3/portfile.cmake
Outdated
@@ -204,6 +205,11 @@ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) | |||
endif() | |||
endif() | |||
else() | |||
# Python Stable ABI is incompatible with --with-pydebug option |
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.
vcpkg does not provide a stable ABI for installed trees, so I'm not sure why this is a relevant distinction? Note that vcpkg's python almost never matches the system python.
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.
This is what their buildsystem does.
Upon further investigation, I found out that debug builds are now abi compatible with release builds python/cpython#12615
Maybe ask maintainers whether this is something they forgot to address in their buildsystem?
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.
Set VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES because there's an additional binary in release builds (see comment in portfile).
Can you explain what the additional binary is?
@BillyONeal the additional binary is |
Ah, I see. "Python Stable ABI" isn't a statement about the shipping Python bits, it's the name of a specific binary. |
aa13372
Thanks! |
self.add(Extension('readline', ['readline.c'], | ||
library_dirs=['/usr/lib/termcap'], | ||
extra_link_args=readline_extra_link_args, | ||
+ runtime_library_dirs=self.lib_dirs, |
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.
Apart from using absolute paths, this patch broke the static build. The build ends successful, but it lacks important components such as binascii
. The error logs lists unknown -R...
parameters.
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.
Use of absolute paths is ok at build time. They will be fixed when installing.
I'll try to get rid of this patch later today and disable python's check for whether module loads or not.
This PR fixes build issues with
x64-linux-dynamic
triplet.setup.py
to force rpath flags for extensions.VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES
because there's an additional binary in release builds (see comment in portfile).libuuid
dependencyFor #25668