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.
2 parents 3c88de1 + efa2eb2 commit d37cd9eCopy full SHA for d37cd9e
2 files changed
newsfragments/4874.feature.rst
@@ -0,0 +1 @@
1
+Restore access to _get_vc_env with a warning.
setuptools/_distutils/_msvccompiler.py
@@ -1,5 +1,16 @@
+import warnings
2
+
3
from .compilers.C import msvc
4
5
__all__ = ["MSVCCompiler"]
6
7
MSVCCompiler = msvc.Compiler
8
9
10
+def __getattr__(name):
11
+ if name == '_get_vc_env':
12
+ warnings.warn(
13
+ "_get_vc_env is private; find an alternative (pypa/distutils#340)"
14
+ )
15
+ return msvc._get_vc_env
16
+ raise AttributeError(name)
0 commit comments