You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
distutils package deprecation warning in configure.py #42186
D:\Git\nodejs\node\configure.py:17: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
PEP 632 suggests to use packaging, although that doesn't appear to be a built-in module (unlike distutils) and may be another package to install (either via pip or your OS' package manager). Or maybe we can just parse into tuples as suggested in #29927 (comment).
Activity
cclauss commentedon Mar 2, 2022
I think we have at least 18 months before Python 3.12 is released.
https://www.python.org/dev/peps/pep-0664
richardlau commentedon Mar 2, 2022
For reference:
node/configure.py
Line 17 in d50efc6
PEP 632 suggests to use
packaging, although that doesn't appear to be a built-in module (unlikedistutils) and may be another package to install (either via pip or your OS' package manager). Or maybe we can just parse into tuples as suggested in #29927 (comment).gyp-next will also be affected: https://github.com/nodejs/gyp-next/blob/35305d66b4f377e0f00e52d0426164a592779f17/pylib/gyp/input.py#L19
node/tools/gyp/pylib/gyp/input.py
Line 19 in d50efc6
cclauss commentedon Mar 2, 2022
pypa/setuptools#3145
AdamMajer commentedon Aug 10, 2023
node-gyp has same issue here (nodejs/node-gyp#2869) so the solution is probably to use same solution.
BTW, this is already causing build failures for Fedora Rawhide
[-]Python 3 deprecation warning in configure.py[/-][+]distutils package deprecation warning in configure.py[/+]cclauss commentedon Aug 12, 2023
Yes. The code in question is vendored in from Node-gyp.