Skip to content

Commit d37cd9e

Browse files
committed
2 parents 3c88de1 + efa2eb2 commit d37cd9e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

newsfragments/4874.feature.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore access to _get_vc_env with a warning.
+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1+
import warnings
2+
13
from .compilers.C import msvc
24

35
__all__ = ["MSVCCompiler"]
46

57
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

Comments
 (0)