-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
python-config.py should be part of the stdlib #77620
Comments
Rather than (or in addition to) being a standalone script, python-config should be invokable as a stdlib module, e.g. "python -m sysconfig.config". This would prevent the risk of invoking the wrong script on PATH. |
what are the situations where the path for python and python-config is different? This proposal doesn't say anything how to retrieve the correct information for cross builds using this module. From my point of view, python-config should stay outside the standard library. |
En, looks like just only makefile would call python-config.py. |
I posted on Python-dev (not sure if it will help), I wanted to do this in 2019 but looks like there is still no consensus yet. |
It seems it could be moved to sysconfig itself -- the CLI options from python-config would fit there nicely. |
Yes, this was also proposed here: https://bugs.python.org/issue11602 |
Misc/python-config.in ultimately becomes a Python script that prints things to stdout. It isn't written to be a module as is. Any work to make it one is effectively writing entirely new code to do what it does. To keep a single source of truth for
This should reduce the maintenance burden and is kinder to cross-compiliation builds (which we generally are lousy at supporting despite their importance to the world, so our bar today is merely "not regressing"). All that said, in what contexts would having anything that python-config produces today be available from sysconfig be useful? |
In contexts where your |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: