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

Use alternative to setuptools's distutils #524

Open
etiennemlb opened this issue Jan 24, 2025 · 2 comments
Open

Use alternative to setuptools's distutils #524

etiennemlb opened this issue Jan 24, 2025 · 2 comments

Comments

@etiennemlb
Copy link

In python 3.10, distutils was deprecated. In python 3.12, distutils is no longer provided by "default". More details here: https://peps.python.org/pep-0632/#migration-advice

pdi rely on disutils in its discovery of python (Support.cmake):

execute_process (COMMAND "${${_PYTHON_PREFIX}_EXECUTABLE}" -c "import sys; from distutils import sysconfig;sys.stdout.write(';'.join([sysconfig.get_python_lib(plat_specific=False,standard_lib=True),sysconfig.get_python_lib(plat_specific=True,standard_lib=True),sysconfig.get_python_lib(plat_specific=False,standard_lib=False),sysconfig.get_python_lib(plat_specific=True,standard_lib=False)]))"
@jbigot
Copy link
Member

jbigot commented Jan 27, 2025

Yes, good catch. We indeed had to add distutils as an explicit dependency on debian, still haven't done so on spack, hence pdidev/spack#28.

@jbigot
Copy link
Member

jbigot commented Jan 29, 2025

Keeping this to try and move away from setuptools, but that would require a full rework of our buildsystem

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

No branches or pull requests

2 participants