python: use setuptools with python >= 3.12
[lttng-ust.git] / python-lttngust / setup.py.in
index 303d624539e30c08d3f9216d0b6c181a15fba891..24f8d6738bb821933a8086f72e2a47246c6b6723 100644 (file)
 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.027857 seconds and 4 git commands to generate.