Remove distutils
fabaff opened this issue · 2 comments
fabaff commented
Describe the bug
distutils
is deprecated and slated for removal in Python 3.12
https://peps.python.org/pep-0632//#migration-advice
To Reproduce
Run with Python 3.12
============================= test session starts ==============================
platform linux -- Python 3.12.2, pytest-7.4.4, pluggy-1.4.0
rootdir: /build/source
collected 63 items / 10 errors / 1 deselected / 62 selected
==================================== ERRORS ====================================
____________________ ERROR collecting test/test_backend.py _____________________
ImportError while importing test module '/build/source/test/test_backend.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/n3jf1lkdfakxskzsm4nlhss8mdgmcqhc-python3-3.12.2/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_backend.py:7: in <module>
from stone.ir import (
stone/ir/__init__.py:1: in <module>
from .api import * # noqa: F401,F403
stone/ir/api.py:5: in <module>
from distutils.version import StrictVersion
E ModuleNotFoundError: No module named 'distutils'
___________________ ERROR collecting test/test_js_client.py ____________________
[...]
greg-db commented
Thanks! I'll ask the team to fix this.
kloczek commented
+1