Skip to content

Commit ab2d859

Browse files
authored
Merge branch 'main' into re-enable-mypy
2 parents fd57c55 + efa2eb2 commit ab2d859

File tree

4 files changed

+20
-28
lines changed

4 files changed

+20
-28
lines changed

distutils/_msvccompiler.py

Lines changed: 11 additions & 0 deletions
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)

distutils/command/__init__.py

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,21 @@
33
Package containing implementation of all the standard Distutils
44
commands."""
55

6-
from . import (
7-
bdist,
8-
bdist_dumb,
9-
bdist_rpm,
10-
build,
11-
build_clib,
12-
build_ext,
13-
build_py,
14-
build_scripts,
15-
check,
16-
clean,
17-
install,
18-
install_data,
19-
install_headers,
20-
install_lib,
21-
install_scripts,
22-
sdist,
23-
)
24-
256
__all__ = [
26-
'bdist',
27-
'bdist_dumb',
28-
'bdist_rpm',
297
'build',
30-
'build_clib',
31-
'build_ext',
328
'build_py',
9+
'build_ext',
10+
'build_clib',
3311
'build_scripts',
34-
'check',
3512
'clean',
3613
'install',
37-
'install_data',
38-
'install_headers',
3914
'install_lib',
15+
'install_headers',
4016
'install_scripts',
17+
'install_data',
4118
'sdist',
19+
'bdist',
20+
'bdist_dumb',
21+
'bdist_rpm',
22+
'check',
4223
]

newsfragments/4874.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Restore access to _get_vc_env with a warning.

newsfragments/4876.bugfix.2.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)