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------------------------------------