diff options
author | Nate Coraor <nate@bx.psu.edu> | 2016-02-02 12:08:25 -0500 |
---|---|---|
committer | Nate Coraor <nate@bx.psu.edu> | 2016-02-02 12:08:25 -0500 |
commit | 93de2423f9ce7ad926767f2cb9459bcb9f883e87 (patch) | |
tree | 92b584f76649b6b5a230fad8cce26d11de2a42e4 | |
parent | 2254e6bf85f45dec7be3a498bb1fde6428880b1d (diff) | |
download | wheel-93de2423f9ce7ad926767f2cb9459bcb9f883e87.tar.gz |
Use os.path.normalize() to remove `..` from the lib install path on Windows.
Fixes issue #91.
-rw-r--r-- | wheel/bdist_wheel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wheel/bdist_wheel.py b/wheel/bdist_wheel.py index eedc93d..696fef3 100644 --- a/wheel/bdist_wheel.py +++ b/wheel/bdist_wheel.py @@ -194,7 +194,7 @@ class bdist_wheel(Command): if os.name == 'nt': # win32 barfs if any of these are ''; could be '.'? # (distutils.command.install:change_roots bug) - basedir_observed = os.path.join(self.data_dir, '..') + basedir_observed = os.path.normpath(os.path.join(self.data_dir, '..')) self.install_libbase = self.install_lib = basedir_observed setattr(install, |