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

Remove use of deprecated python distutils #931

Merged
merged 4 commits into from
Oct 16, 2024
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Oct 15, 2024

Remove use of deprecated python distutils.

Resolves #781

@heifner heifner added the OCI Work exclusive to OCI team label Oct 15, 2024
@linh2931
Copy link
Member

Failed for ubntu20?

from distutils import sysconfig
print(sysconfig.get_python_lib(plat_specific=False,standard_lib=False))
else:
from sysconfig import get_path; print(get_path('platlib', 'deb_system'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know where the deb_system scheme is documented?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No :(
Here is where I got that from: https://forum.freecad.org/viewtopic.php?t=67985
Which links to this "interesting" article: https://ffy00.github.io/blog/02-python-debian-and-the-install-locations/
Add this to the many things I hate about Python.

@ericpassmore
Copy link
Contributor

Note:start
category: Chores
component: Internal
summary: Removed use of deprecated python distutils.
Note:end

@heifner heifner merged commit 2dd478e into main Oct 16, 2024
36 checks passed
@heifner heifner deleted the GH-781-python-sitelib branch October 16, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix antelope-spring-dev.deb install with Python 3.12 (as on Ubuntu 24)
5 participants