-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Leftover code in sysconfig.expand_makefile_vars
#128978
Comments
Is it time to deprecate this untested and undocumented function? |
Probably. It was introduced in 2000 and fixed in 2016 but nothing else: https://github.com/search?q=repo%3Apython%2Fcpython+expand_makefile_vars&type=commits. So how about I first fix the NameError, then in a follow-up PR, I deprecate the function (so that I can have a dedicated What's New entry)? |
Also, |
Sure, if we decide to deprecate the function, it should be done in separated change. |
pythonGH-128979) This fixes a regression introduced by 4a53a39. (cherry picked from commit df66ff1) Co-authored-by: Bénédikt Tran <[email protected]>
pythonGH-128979) This fixes a regression introduced by 4a53a39. (cherry picked from commit df66ff1) Co-authored-by: Bénédikt Tran <[email protected]>
I am up to rename it to |
python#128979) This fixes a regression introduced by 4a53a39.
Bug report
Bug description:
I think there is some leftover code in
sysconfig.expand_makefile_vars
(4a53a39):cpython/Lib/sysconfig/__init__.py
Lines 727 to 734 in 4dade05
The
_findvar1_rx
and_findvar2_rx
variables are not declared at all (they were moved tosysconfig/__main__.py
). Since the function is publicly named (but not exported nor documented), I prefer backporting the changes of #110785, namely re-use the patterns as is.cc @FFY00
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
NameError
insysconfig.expand_makefile_vars
#128979NameError
insysconfig.expand_makefile_vars
(GH-128979) #129065NameError
insysconfig.expand_makefile_vars
(GH-128979) #129066 (not needed)The text was updated successfully, but these errors were encountered: