diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-25 16:35:50 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-05-25 16:35:50 -0400 |
| commit | 781d42dffe2913f1a1f27128effa7198c27f569f (patch) | |
| tree | a5c2300eab0bdaec7380443ba3bf244f1ecd6f6f | |
| parent | cd7d6d56a1cf84cafea44f7cf7e357a926821f03 (diff) | |
| download | external_python_setuptools-781d42dffe2913f1a1f27128effa7198c27f569f.tar.gz external_python_setuptools-781d42dffe2913f1a1f27128effa7198c27f569f.tar.bz2 external_python_setuptools-781d42dffe2913f1a1f27128effa7198c27f569f.zip | |
Fallback to 'lib' when 'sys.platlibdir' does not exist.
| -rw-r--r-- | distutils/command/install.py | 2 | ||||
| -rw-r--r-- | distutils/sysconfig.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/distutils/command/install.py b/distutils/command/install.py index aaa300ef..21f8c27c 100644 --- a/distutils/command/install.py +++ b/distutils/command/install.py @@ -298,7 +298,7 @@ class install(Command): 'sys_exec_prefix': exec_prefix, 'exec_prefix': exec_prefix, 'abiflags': abiflags, - 'platlibdir': sys.platlibdir, + 'platlibdir': getattr(sys, 'platlibdir', 'lib'), } if HAS_USER_SITE: diff --git a/distutils/sysconfig.py b/distutils/sysconfig.py index 37feae5d..2109f746 100644 --- a/distutils/sysconfig.py +++ b/distutils/sysconfig.py @@ -148,7 +148,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): if plat_specific or standard_lib: # Platform-specific modules (any module from a non-pure-Python # module distribution) or standard Python library modules. - libdir = sys.platlibdir + libdir = getattr(sys, "platlibdir", "lib") else: # Pure Python libdir = "lib" |
