diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-06 11:00:07 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-06 11:00:07 -0400 |
commit | 1d7c74836b725af874f975503568053f0b95e26c (patch) | |
tree | ab563ff99fbc058565674e92eb2850858de62d82 | |
parent | 044f77190bb457f35222044e5a455cfb11a4455e (diff) | |
download | python-setuptools-git-1d7c74836b725af874f975503568053f0b95e26c.tar.gz |
Prefer public APIs for sysconfig schemes.
-rw-r--r-- | distutils/command/install.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/distutils/command/install.py b/distutils/command/install.py index 026c609a..0db71e94 100644 --- a/distutils/command/install.py +++ b/distutils/command/install.py @@ -93,7 +93,11 @@ def _load_schemes(): try: import sysconfig - schemes.update(sysconfig.INSTALL_SCHEMES) + sysconfig_schemes = { + scheme: sysconfig.get_paths(scheme, expand=False) + for scheme in sysconfig.get_scheme_names() + } + schemes.update(sysconfig_schemes) except (ImportError, AttributeError): pass |