Commit e67a2093 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

cerbero/config: Ensure that libdir is not 'Lib' on Windows

Lib as libdir interferes with packaging.
parent 58b2062c
...@@ -250,6 +250,11 @@ class Config (object): ...@@ -250,6 +250,11 @@ class Config (object):
pythonpath = [os.path.join(prefix, pypath), pythonpath = [os.path.join(prefix, pypath),
os.path.join(self.build_tools_prefix, pypath)] os.path.join(self.build_tools_prefix, pypath)]
for path in pythonpath: for path in pythonpath:
if self.platform == Platform.WINDOWS:
# pythonpaths start with 'Lib' on Windows, which is extremely
# undesirable since our libdir is 'lib'. Windows APIs are
# case-preserving case-insensitive.
path = path.lower()
self._create_path(path) self._create_path(path)
pythonpath = os.pathsep.join(pythonpath) pythonpath = os.pathsep.join(pythonpath)
Supports Markdown
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