python: use setuptools with python >= 3.12
[lttng-ust.git] / src / python-lttngust / setup.py.in
index 1024d5725fae97932694f4454aba370e43e4bcb8..c5ce059b5a4df935051537aef16126e381cd4379 100644 (file)
@@ -7,7 +7,10 @@
 import os
 import sys
 
-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.023379 seconds and 4 git commands to generate.