You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Define SOABI, LIBRARY, LDLIBRARY and LIBPL on Windows #88402
Python on Windows currently has no values in sysconfig to locate the lib files for building. Though these are very predictable (for now), it would be nice to have them in the same place as for other platforms.
I propose defining the following config vars in sysconfig:
Well, we know it currently works well enough to pass tests, so there must be some other way that it handles that variable not currently existing. It's possible though that providing that value would cause it to start failing.
And now I've been reminded of this issue, ping @FFY00
I propose defining the following config vars in sysconfig:
I think it's a good idea, we could definitely use this downstream until we have a better place to expose this information. Adding this should be fairly easy, the new variables just need to be added to _init_non_posix, if anyone wants to open a PR.
Adding this should be fairly easy, the new variables just need to be added to _init_non_posix, if anyone wants to open a PR.
I can put up a PR for this. I think having SOABI consistent defined will be useful for PEP 703, and it'd be helpful to have sysconfig.get_config_var('Py_NOGIL') work on Windows as well.
Activity
zooba commentedon May 25, 2021
Python on Windows currently has no values in sysconfig to locate the lib files for building. Though these are very predictable (for now), it would be nice to have them in the same place as for other platforms.
I propose defining the following config vars in sysconfig:
Are there better shared names for these? Or others that should be added?
zooba commentedon May 25, 2021
Should actually be:
tasty0tomato commentedon Feb 19, 2023
Tools/freeze.py may not work on Windows because of this.
cpython/Tools/freeze/freeze.py
Line 239 in 04cc427
zooba commentedon Feb 20, 2023
Well, we know it currently works well enough to pass tests, so there must be some other way that it handles that variable not currently existing. It's possible though that providing that value would cause it to start failing.
And now I've been reminded of this issue, ping @FFY00
FFY00 commentedon Feb 20, 2023
I think it's a good idea, we could definitely use this downstream until we have a better place to expose this information. Adding this should be fairly easy, the new variables just need to be added to
_init_non_posix, if anyone wants to open a PR.cpython/Lib/sysconfig.py
Line 540 in 84181c1
I'd also probably add a test to make sure they match with the values in
importlib.machinery.EXTENSION_SUFFIXESYes, it should be derived from
installed_base.colesbury commentedon Sep 28, 2023
I can put up a PR for this. I think having
SOABIconsistent defined will be useful for PEP 703, and it'd be helpful to havesysconfig.get_config_var('Py_NOGIL')work on Windows as well.FFY00 commentedon Sep 28, 2023
@colesbury, yeah please do! I'd be happy to review it.
pythongh-88402: Add new sysconfig variables on Windows
gh-88402: Add new sysconfig variables on Windows (GH-110049)
FFY00 commentedon Oct 5, 2023
GH-110049 landed thanks to @colesbury, which implemented this, but with the following differences from the original proposal:
LIBDIRwas used instead ofLIBPL, as it better matches the POSIX semantics (discussion)LIBRARYexposes the libpython DLL name instead of the path to the directory where it is contained (discussion)Py_NOGILwas also addedpythongh-88402: Add new sysconfig variables on Windows (pythonGH-110049)