We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2cf96a commit efa2eb2Copy full SHA for efa2eb2
distutils/_msvccompiler.py
@@ -1,5 +1,16 @@
1
+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)
newsfragments/4874.feature.rst
@@ -0,0 +1 @@
+Restore access to _get_vc_env with a warning.
0 commit comments