Skip to content

Commit

Permalink
As discovered in bpo-41509, relpath can strip spaces, so match that e…
Browse files Browse the repository at this point in the history
…xpectation.
  • Loading branch information
jaraco committed Aug 8, 2020
1 parent ebfe95f commit 48a17a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _restore_install_lib(self):
"""
suffix = os.path.relpath(self.install_lib, self.install_libbase)

if suffix == self._pth_contents:
if suffix.strip() == self._pth_contents.strip():
self.install_lib = self.install_libbase


Expand Down

0 comments on commit 48a17a5

Please sign in to comment.