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

Fix SOABI #120

Draft
wants to merge 2 commits into
base: mingw-v3.10.8
Choose a base branch
from
Draft

Conversation

naveen521kk
Copy link
Member

Fixes #119
Not sure if this will break anything else, cc @lazka

@lazka
Copy link
Member

lazka commented Dec 8, 2022

I remember wheel only allowing certain abi tags: https://github.com/pypa/wheel/blob/3f8bdf1eb67ead22b857445c7c9aa4751ea6bd9a/src/wheel/bdist_wheel.py#L311 Not sure if this breaks it

@naveen521kk
Copy link
Member Author

Not sure whether we should change it or not :(

@MehdiChinoune
Copy link

Maybe I should patch CMake instead?

@lazka
Copy link
Member

lazka commented Dec 8, 2022

Not sure whether we should change it or not :(

as long as we can build a wheel and install it, we should be fine

@duanev
Copy link

duanev commented Jan 26, 2024

On Linux I see

>>> sysconfig.get_config_var('SOABI')
'cpython-311-x86_64-linux-gnu'
>>> sysconfig.get_config_var('EXT_SUFFIX')
'.cpython-311-x86_64-linux-gnu.so'

where the file extension is not included in SOABI.

And FWIW, a running mingw64 cpython (that can import dynamic libs) shows completely different values for SOABI and EXT_SUFFIX ...

@@ -225,6 +225,7 @@ def test_platform_things(self):
self.assertEqual(platform.python_implementation(), "CPython")
self.assertEqual(platform.system(), "Windows")
self.assertTrue(isinstance(sys.api_version, int) and sys.api_version > 0)
self.assertEqual(sysconfig.get_config_var('SOABI'), sysconfig.get_config_var('EXT_SUFFIX'))

Choose a reason for hiding this comment

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

This test should be fixed EXT_SUFFIX=SOABI+sharedl library extension

@MehdiChinoune
Copy link

Maybe make it part of Python #165

@naveen521kk
Copy link
Member Author

Maybe make it part of Python #165

I'm kinda hesitant to change this since there's a possibility that we won't be able to build and install wheels. I'll first test it out thoroughly and only then make this change. I'll not include it in the original PR though in another new one so we can track it a bit more easily. Though we can get it all out together in the repo. I'll also add this to #167

@naveen521kk naveen521kk mentioned this pull request Feb 19, 2024
5 tasks
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.

Wrong SOABI value
4 participants