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):
'sys_exec_prefix': exec_prefix,
'exec_prefix': exec_prefix,
'abiflags': abiflags,
'platlibdir': sys.platlibdir,
'platlibdir': getattr(sys, 'platlibdir', 'lib'),
}
if HAS_USER_SITE:
......
......@@ -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"
......
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