Skip to content

Commit 698892a

Browse files
dnicolodiFFY00
authored andcommitted
BUG: add dependency on setuptools on Python >= 3.12
Meson up to version 1.0.0 uses distuitls for introspection of the Python interpreter it is compiling for. distutils has been removed from the Python standard library in version 3.12. distutils has been effectively embedded into setuptools thus depending on setuptools works around the issue. See mesonbuild/meson#11133.
1 parent 424f2f9 commit 698892a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ requires = [
99
'meson >= 0.63.3',
1010
'pyproject-metadata >= 0.7.1',
1111
'tomli >= 1.0.0; python_version < "3.11"',
12+
'setuptools >= 60.0; python_version >= "3.12"',
1213
]
1314

1415
[project]
@@ -31,6 +32,7 @@ dependencies = [
3132
'meson >= 0.63.3',
3233
'pyproject-metadata >= 0.7.1',
3334
'tomli >= 1.0.0; python_version < "3.11"',
35+
'setuptools >= 60.0; python_version >= "3.12"',
3436
]
3537

3638
dynamic = [

0 commit comments

Comments
 (0)