Commit 5642e413 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract function for restoring install lib to encapsulate behavior.

parent 268ef5f5
...@@ -104,14 +104,15 @@ class install_with_pth(install): ...@@ -104,14 +104,15 @@ class install_with_pth(install):
def finalize_options(self): def finalize_options(self):
install.finalize_options(self) install.finalize_options(self)
self._restore_install_lib()
# undo secondary effect of `extra_path` adding to `install_lib` def _restore_install_lib(self):
install_suffix = os.path.relpath( """
self.install_lib, Undo secondary effect of `extra_path` adding to `install_lib`
self.install_libbase, """
) suffix = os.path.relpath(self.install_lib, self.install_libbase)
if install_suffix == self._pth_contents: if suffix == self._pth_contents:
self.install_lib = self.install_libbase self.install_lib = self.install_libbase
......
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