diff options
| author | Christoph Reiter <reiter.christoph@gmail.com> | 2021-12-18 08:15:26 +0100 |
|---|---|---|
| committer | Christoph Reiter <reiter.christoph@gmail.com> | 2021-12-18 08:27:49 +0100 |
| commit | 7828197702541840fd61377434711b788de7a076 (patch) | |
| tree | 20041841d7c8f0bbdf5617e9d163acf7189f1538 /setuptools/_distutils/command | |
| parent | da15b6e30ec48a3472b518b63c63ce6363b4e1cd (diff) | |
| download | python-setuptools-git-7828197702541840fd61377434711b788de7a076.tar.gz | |
msvc9compiler: Don't raise DistutilsPlatformError on import
It gets raised when get_build_version() returns a too low version
or when it fails to detect a MSVC version, which for exaple is the
case when CPython is built with gcc/clang.
In theory this module isn't needed on non-MSVC platforms, but setuptools
imports it anyway when monkey patching, which in turn makes setuptools fail.
To work around this only check the version when initialising MSVCCompiler().
This also mirrors the behaviour of the newer MSVCCompiler() (in _msvccompiler)
which also raises DistutilsPlatformError() only on initialisation in case
it can't find the right MSVC.
Diffstat (limited to 'setuptools/_distutils/command')
0 files changed, 0 insertions, 0 deletions
