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 9ba9c1e commit 5152891Copy full SHA for 5152891
src/cffi/_shimmed_dist_utils.py
@@ -30,7 +30,10 @@
30
from distutils.log import set_threshold, set_verbosity
31
32
if sys.platform == 'win32':
33
- from distutils.msvc9compiler import MSVCCompiler
+ try:
34
+ from distutils.msvccompiler import MSVCCompiler
35
+ except ImportError:
36
+ from distutils.msvc9compiler import MSVCCompiler
37
except Exception as ex:
38
if sys.version_info >= (3, 12):
39
raise Exception("This CFFI feature requires setuptools on Python >= 3.12. Please install the setuptools package.") from ex
0 commit comments