Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-41282: (PEP 632) Deprecate distutils.sysconfig (partial implementation of the PEP) #23142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Apr 23, 2021
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9de38bb
Mark distutils.sysconfig as deprecated
frenzymadness Oct 15, 2020
2f73368
Import global paths from sysconfig module
frenzymadness Oct 15, 2020
43d810e
Move some similar functions from distutils.sysconfig -> sysconfig
frenzymadness Oct 15, 2020
2ca4dfd
Move the rest of global variables
frenzymadness Oct 15, 2020
09f2617
Move the rest of functions to sysconfig
frenzymadness Oct 15, 2020
24e0584
Import regexes used in tests
frenzymadness Oct 16, 2020
b9ee651
Implement compatibility option for parse_makefile
frenzymadness Oct 16, 2020
12f92cf
Do not use assignment in teardown to not lose reference to global dict
frenzymadness Oct 19, 2020
7b9b0c1
Ignore DeprecationWarning in pip code in ensurepip module
frenzymadness Oct 20, 2020
6f5aa4f
Improve setUp/tearDown of UnixCCompilerTestCase
frenzymadness Oct 20, 2020
fca8adc
Improve or create setUp/tearDown methods for tests where sysconfig._C…
frenzymadness Oct 21, 2020
318428d
Rename `distutils_compat` to `keep_unresolved` and reverse the logic
frenzymadness Oct 23, 2020
6136978
Merge all import from sysconfig to one statement
frenzymadness Oct 23, 2020
e635dbd
Allow import of sysconfig when re module is not available
frenzymadness Oct 23, 2020
d8a8cf0
Add a TODO comment about PEP 632
frenzymadness Oct 23, 2020
e317db5
Mark distutils.sysconfig as deprecated in docs
frenzymadness Oct 23, 2020
17206f0
Copy docs for get_python_inc and get_python_lib from distutils.syscon…
frenzymadness Oct 23, 2020
04ef7af
Move customize_compiler back to distutils.sysconfig as it'll be remov…
frenzymadness Oct 24, 2020
6015255
Fix import of not-yet-initialized _CONFIG_VARS
frenzymadness Nov 3, 2020
abc310b
Switch global vars from regex objects to raw strings and import re on…
frenzymadness Nov 5, 2020
17aa9c4
Move get_python_lib and get_python_inc back to distutils.sysconfig
frenzymadness Nov 13, 2020
be181b6
News entry
frenzymadness Feb 15, 2021
e253a3d
Restore build_flags accidentally removed during a rebase
frenzymadness Apr 16, 2021
cd8e387
Update Doc/distutils/apiref.rst
frenzymadness Apr 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge all import from sysconfig to one statement
  • Loading branch information
frenzymadness committed Apr 16, 2021
commit 6136978d0870befce5a8d66f9c2f366751f1d66c
55 changes: 28 additions & 27 deletions 55 Lib/distutils/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,37 @@

from .errors import DistutilsPlatformError

from sysconfig import _PREFIX as PREFIX
from sysconfig import _BASE_PREFIX as BASE_PREFIX
from sysconfig import _EXEC_PREFIX as EXEC_PREFIX
from sysconfig import _BASE_EXEC_PREFIX as BASE_EXEC_PREFIX
from sysconfig import _PROJECT_BASE as project_base
from sysconfig import _PYTHON_BUILD as python_build
from sysconfig import _CONFIG_VARS as _config_vars
from sysconfig import _init_posix as sysconfig_init_posix
from sysconfig import parse_config_h as sysconfig_parse_config_h
from sysconfig import _parse_makefile as sysconfig_parse_makefile
from sysconfig import (
_PREFIX as PREFIX,
_BASE_PREFIX as BASE_PREFIX,
_EXEC_PREFIX as EXEC_PREFIX,
_BASE_EXEC_PREFIX as BASE_EXEC_PREFIX,
_PROJECT_BASE as project_base,
_PYTHON_BUILD as python_build,
_CONFIG_VARS as _config_vars,
_init_posix as sysconfig_init_posix,
parse_config_h as sysconfig_parse_config_h,
_parse_makefile as sysconfig_parse_makefile,

from sysconfig import _init_non_posix
from sysconfig import _is_python_source_dir
from sysconfig import _sys_home
_init_non_posix,
_is_python_source_dir,
_sys_home,

from sysconfig import _variable_rx
from sysconfig import _findvar1_rx
from sysconfig import _findvar2_rx
_variable_rx,
_findvar1_rx,
_findvar2_rx,

from sysconfig import build_flags
from sysconfig import customize_compiler
from sysconfig import expand_makefile_vars
from sysconfig import is_python_build
from sysconfig import get_config_h_filename
from sysconfig import get_config_var
from sysconfig import get_config_vars
from sysconfig import get_makefile_filename
from sysconfig import get_python_inc
from sysconfig import get_python_version
from sysconfig import get_python_lib
customize_compiler,
expand_makefile_vars,
is_python_build,
get_config_h_filename,
get_config_var,
get_config_vars,
get_makefile_filename,
get_python_inc,
get_python_version,
get_python_lib,
)

if os.name == "nt":
from sysconfig import _fix_pcbuild
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.