-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Small inconsistency in usage message between the python and shell script versions of python-config #89264
Comments
However there is a small different in the output I/O between the python and shell script versions of Lines 15 to 18 in bc1c49f
def exit_with_usage(code=1):
print("Usage: {0} [{1}]".format(
sys.argv[0], '|'.join('--'+opt for opt in valid_opts)), file=sys.stderr)
sys.exit(code) while in the shell script version it always prints to cpython/Misc/python-config.sh.in Lines 5 to 9 in bc1c49f
exit_with_usage () This inconsistency does not affect most users of |
I think python-config is modelled after pkg-config: what does the latter do? Also, I’m not sure it would be appropriate to change behaviour in existing releases. |
Thanks. I didn't know about the
pkg-config followed by invalid options prints output to stderr, for example The PR I submitted does something similar, making both python and shell script versions of |
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: