Skip to content

Commit c802880

Browse files
committed
Mark msvc*compiler modules as deprecated.
1 parent 49116a3 commit c802880

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

distutils/msvc9compiler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import subprocess
1717
import sys
1818
import re
19+
import warnings
1920

2021
from distutils.errors import (
2122
DistutilsExecError,
@@ -30,6 +31,13 @@
3031

3132
import winreg
3233

34+
warnings.warn(
35+
"msvc9compiler is deprecated and slated to be removed "
36+
"in the future. Please discontinue use or file an issue "
37+
"with pypa/distutils describing your use case.",
38+
DeprecationWarning,
39+
)
40+
3341
RegOpenKeyEx = winreg.OpenKeyEx
3442
RegEnumKey = winreg.EnumKey
3543
RegEnumValue = winreg.EnumValue

distutils/msvccompiler.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import sys
1212
import os
13+
import warnings
1314
from distutils.errors import (
1415
DistutilsExecError,
1516
DistutilsPlatformError,
@@ -62,6 +63,14 @@
6263
)
6364

6465

66+
warnings.warn(
67+
"msvccompiler is deprecated and slated to be removed "
68+
"in the future. Please discontinue use or file an issue "
69+
"with pypa/distutils describing your use case.",
70+
DeprecationWarning,
71+
)
72+
73+
6574
def read_keys(base, key):
6675
"""Return list of registry keys."""
6776
try:

0 commit comments

Comments
 (0)