ionelmc / python-hunter

Hunter is a flexible code tracing toolkit.
https://python-hunter.readthedocs.io/
BSD 2-Clause "Simplified" License
794 stars 46 forks source link

DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead #97

Closed The-Compiler closed 3 years ago

The-Compiler commented 3 years ago

With Python 3.10.0b1:

$ python3 -Wall -c "import hunter"
.../site-packages/hunter/const.py:5: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.sysconfig import get_python_lib
.../site-packages/hunter/const.py:5: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  from distutils.sysconfig import get_python_lib
ionelmc commented 3 years ago

Oooooof. It appears they are breaking my stuff in https://bugs.python.org/issue41282

ionelmc commented 3 years ago

Working it in https://github.com/ionelmc/python-hunter/tree/fix-distutils-deprecation

ionelmc commented 3 years ago

ETA release in 1 day!