Skip to content

Commit

Permalink
Fix: distutils removed in python 3.12
Browse files Browse the repository at this point in the history
See https://peps.python.org/pep-0632/

Change-Id: If1349cb455aeeb2c2f81bc045d3d275ed1ec32e2
Signed-off-by: Michael Jeanson <[email protected]>
Signed-off-by: Jérémie Galarneau <[email protected]>
  • Loading branch information
mjeanson authored and jgalar committed Nov 2, 2022
1 parent eaa8081 commit 3c77c31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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------------------------------------
Expand Down

0 comments on commit 3c77c31

Please sign in to comment.