Commit 781d42df authored by Jason R. Coombs's avatar Jason R. Coombs

Fallback to 'lib' when 'sys.platlibdir' does not exist.

parent cd7d6d56
...@@ -298,7 +298,7 @@ class install(Command): ...@@ -298,7 +298,7 @@ class install(Command):
'sys_exec_prefix': exec_prefix, 'sys_exec_prefix': exec_prefix,
'exec_prefix': exec_prefix, 'exec_prefix': exec_prefix,
'abiflags': abiflags, 'abiflags': abiflags,
'platlibdir': sys.platlibdir, 'platlibdir': getattr(sys, 'platlibdir', 'lib'),
} }
if HAS_USER_SITE: if HAS_USER_SITE:
......
...@@ -148,7 +148,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): ...@@ -148,7 +148,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
if plat_specific or standard_lib: if plat_specific or standard_lib:
# Platform-specific modules (any module from a non-pure-Python # Platform-specific modules (any module from a non-pure-Python
# module distribution) or standard Python library modules. # module distribution) or standard Python library modules.
libdir = sys.platlibdir libdir = getattr(sys, "platlibdir", "lib")
else: else:
# Pure Python # Pure Python
libdir = "lib" libdir = "lib"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment