From 3c77c310715b458bd65fbbcf4614947eec78fd4a Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 31 Oct 2022 11:31:24 -0400 Subject: [PATCH] Fix: distutils removed in python 3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit See https://peps.python.org/pep-0632/ Change-Id: If1349cb455aeeb2c2f81bc045d3d275ed1ec32e2 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- bindings/python/setup.py.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/python/setup.py.in b/bindings/python/setup.py.in index 9baa0625..c43f1540 100644 --- a/bindings/python/setup.py.in +++ b/bindings/python/setup.py.in @@ -22,7 +22,10 @@ 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------------------------------------ -- 2.34.1