Skip to content
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

Broken in 3.11rc2 #103

Open
virtuald opened this issue Oct 14, 2022 · 2 comments
Open

Broken in 3.11rc2 #103

virtuald opened this issue Oct 14, 2022 · 2 comments

Comments

@virtuald
Copy link
Contributor

Looks like they removed sysconfig._is_python_source_dir in python/cpython@0675975

@virtuald
Copy link
Contributor Author

If you need a 3.11 cross environment to play with, I've got some docker-based stuff at robotpy/robotpy-cross-docker#8

@virtuald
Copy link
Contributor Author

I have a fix. The reason it broke is because of one of the new speed enhancements to CPython that freezes several commonly used modules that never change -- and site.py is one of them, which disables all of crossenv's patches.

Adding the option -X frozen_modules=off fixes that, which then leads to importlib machinery trying to import something with imports something which imports math... so I also add lib-dynload to the initial interpreter path and everything seems to work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant