-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
sysconfig --generate-posix-vars fails because of AttributeError #103130
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
@arhadthedev thanks for the ping! FYI we have an |
@nomadsinteractive thank you for the report!
I agree, this is a major paint point, and something I am trying to look into how to fix.
We are doing that, it's just the code is assuming Your fix seem the okay, but I'd actually do the same as we do for Do you want to submit a PR? I now want to look in which cases |
@nomadsinteractive actually, would you be able to share the instructions to reproduce this issue? It would help a lot in my debugging. |
@FFY00 And for the
For Windows builds, I guess it's undefined behavior. And about reproducing, it's a bit tricky now, the story begins here: It may not be easy to reproduce this issue, but finding the reason is easy: |
Bug report
When cross compiling python on Windows system,
-m sysconfig --generate-posix-vars
fails.Raising:
Yeah, cross compiling python is a daunting task, especially on Windows. But I want to make a first little step.
The problem lies within the function '_get_sysconfigdata_name' in sysconfig.py
I think we should hornor the environment variable first, then fall to the fallback value.
So changing the function like this below
This would help us to find a work around when cross compiling python on Windows.
Thanks
A clear and concise description of what the bug is.
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.
Your environment
The text was updated successfully, but these errors were encountered: