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

Lack of Distutils (deprecated since python 3.10, removed in 3.12) prevents building #1640

Open
theofficialgman opened this issue Apr 30, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@theofficialgman
Copy link

Bug Description

Distutils has been removed from python3 and can no longer be used. You need to modify the codebase to not depend on it. See the upstream documentation for transitioning to other APIs https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated

../meson.build:83:0: ERROR: <PythonExternalProgram 'python3' -> ['/usr/bin/python3']> is not a valid python or it is missing distutils

Expected Behavior

Ability to build on python 3.12+

xemu Version

latest git master

System Information

No response

Additional Context

No response

@theofficialgman theofficialgman added the bug Something isn't working label Apr 30, 2024
@mborgerson
Copy link
Member

It's been fixed on deb packaging branch. Feel free to send me a pr elsewhere to update the dep

@theofficialgman
Copy link
Author

theofficialgman commented May 1, 2024

It's been fixed on deb packaging branch. Feel free to send me a pr elsewhere to update the dep

Its most certainly not fixed. This doesn't work of course 721fca5 . Read the link posted. distutils has been entirely removed. It does not exist in a separate package either.

@theofficialgman
Copy link
Author

I see no reason why the builtin python version comparison can't be used https://packaging.pypa.io/en/latest/version.html#packaging.version.Version

CC @elmarco as the author of this addition 73e6aec for correction to use some other supported method for version comparison

@mborgerson
Copy link
Member

mborgerson commented May 2, 2024

@theofficialgman xemu is a based on QEMU, and it looks like they have already migrated from distutils upstream. We are just a bit behind in versions. It'll get fixed eventually when I rebase again or when either I or someone else finds time to fix it before then. If you are very motivated, feel free to send a PR to fix the build in the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants