-
-
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
Linker flags starting with -h breaks setup.py (regression) #89384
Comments
Hi, Since 3.8 (included), the following build command fails:
With the following error:
A quick hack in setup.py "fixes" the issue:
+ options, _ = parser.parse_known_args([x for x in env_val.split() if not x.startswith('-h')]) Another workaround as a user is to do use |
@ux, could you please provide more information? What platform are you on, and what compiler version produces this error? |
Inada: adding you as you merged the patch that made the switch optparse->argparse. |
Thanks for the report, @ux, and thanks for the PR, Andrei! I've backported the fix for release in 3.10.1 but I think it's pretty late in 3.9's release cycle and we've lived this long with the issue. |
I agree re: 3.9, thanks Ned! |
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: