We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fcb6a1 commit 2ae0312Copy full SHA for 2ae0312
setup.py
@@ -7,12 +7,17 @@
7
8
from __future__ import print_function
9
10
-from distutils.version import LooseVersion
11
import platform
12
import os
13
import sys
14
from setuptools import setup
15
+# Python 3.12 dropped distutils from the stdlib. Try to access it via
16
+# setuptools.
17
+try:
18
+ from setuptools._distutils.version import LooseVersion
19
+except ImportError:
20
+ from distutils.version import LooseVersion
21
22
if sys.version_info[0:2] < (3, 8):
23
print("Python 3.8+ is required", file=sys.stderr)
0 commit comments