diff options
author | LumÃr 'Frenzy' Balhar <frenzy.madness@gmail.com> | 2021-04-23 12:02:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 12:02:41 (GMT) |
commit | 90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf (patch) | |
tree | 5279da33ebadd26e8040b394929cce64f861acab /Lib/distutils/extension.py | |
parent | b9ad88be0304136c3fe5959c65a5d2c75490cd80 (diff) | |
download | cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.zip cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.tar.gz cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.tar.bz2 |
bpo-41282: (PEP 632) Deprecate distutils.sysconfig (partial implementation of the PEP) (GH-23142)
This change:
* merges `distutils.sysconfig` into `sysconfig` while keeping the original functionality and
* marks `distutils.sysconfig` as deprecated
https://bugs.python.org/issue41282
Diffstat (limited to 'Lib/distutils/extension.py')
-rw-r--r-- | Lib/distutils/extension.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py index c507da3..e85032e 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -4,6 +4,7 @@ Provides the Extension class, used to describe C/C++ extension modules in setup scripts.""" import os +import re import warnings # This class is really only used by the "build_ext" command, so it might @@ -161,7 +162,7 @@ def read_setup_file(filename): line = file.readline() if line is None: # eof break - if _variable_rx.match(line): # VAR=VALUE, handled in first pass + if re.match(_variable_rx, line): # VAR=VALUE, handled in first pass continue if line[0] == line[-1] == "*": |