python: replace distutils with setuptools
[babeltrace.git] / src / bindings / python / bt2 / setup.py.in
index d6f7c90281e26e2f106f3376f4b70acae6cf4f18..fff970870f83f705a4a4ae54e6aee959d060b612 100644 (file)
@@ -7,7 +7,10 @@ import sys
 import os
 import sysconfig
 
-from distutils.core import setup, Extension
+if sys.version_info < (3, 12):
+    from distutils.core import setup, Extension
+else:
+    from setuptools import setup, Extension
 
 PY_PATH_WARN_MSG = """
 -------------------------------------WARNING------------------------------------
This page took 0.025187 seconds and 4 git commands to generate.