-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Deprecate sysconfig.expand_makefile_vars
#129064
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
Comments
Seems like a best-case scenario for deprecation given that the function was broken for all this time and nobody (apparently?) noticed |
Ok, my bad but it was only broken in 3.13+. I thought it was 3.12 but I misread the change history. So 3.12 is working, but 3.13 and 3.14 are broken. |
Cross-posting from the duplicated issue I open in GH-129075.
|
Signed-off-by: Filipe Laíns <[email protected]>
Considering it has been decided to be deprecated, I'm going to close this issue. Thanks for the PR by the way! |
The documentation is not rendered properly:
I'm talking about the |
This character is not needed actually (since there is no documentation, we can decide not to use |
sysconfig.expand_makefile_vars
sysconfig.expand_makefile_vars
Feature or enhancement
Proposal:
Per #128978, the function was not working (since 3.13 after 4a53a39) because of a
NameError
. There are very few occurrences of that function: https://github.com/search?q=expand_makefile_vars+language%3APython&type=code&l=Python and most of them are actually bundled (and working) versions of that function usingdistutils.sysconfig.expand_makefile_vars
instead ofsysconfig.expand_makefile_vars
.Since
distutils
was removed in Python 3.12, users will need to accesssysconfig.expand_makefile_vars
directly if they use it (and if the function is called!). Now, AFAIK, there are some usages in the wild (e.g., https://github.com/ncbi/ncbi-cxx-toolkit-public/blob/52b6b3c2cea0af8553b026f84cb697afb16ecb64/src/dbapi/lang_bind/python/setup.py#L66) that could hit it at runtime, so if they decide to dropdistutils
support for whatever reason, and use oursysconfig
, they would be a bit annoyed =/So we can either decide to deprecate it (since it's not documented nor tested actually), or we can document it and properly test it. It's easy to deprecate it but it would add some burden on downstream users, so maybe we can just test it and document it?
cc @vstinner
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: