Skip to content

Commit 48a17a5

Browse files
committed
As discovered in bpo-41509, relpath can strip spaces, so match that expectation.
1 parent ebfe95f commit 48a17a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def _restore_install_lib(self):
117117
"""
118118
suffix = os.path.relpath(self.install_lib, self.install_libbase)
119119

120-
if suffix == self._pth_contents:
120+
if suffix.strip() == self._pth_contents.strip():
121121
self.install_lib = self.install_libbase
122122

123123

0 commit comments

Comments
 (0)