Fix builds with builddir != srcdir, introduced in r83988.
os.path.dirname(__file__) points to the scrdir, not the builddir. Use os.getcwd() instead.
This commit is contained in:
parent
67e91ad9cf
commit
7311729790
2
setup.py
2
setup.py
|
@ -234,7 +234,7 @@ class PyBuildExt(build_ext):
|
|||
# will fail.
|
||||
with open(_BUILDDIR_COOKIE, "wb") as f:
|
||||
f.write(self.build_lib.encode('utf-8', 'surrogateescape'))
|
||||
abs_build_lib = os.path.join(os.path.dirname(__file__), self.build_lib)
|
||||
abs_build_lib = os.path.join(os.getcwd(), self.build_lib)
|
||||
if abs_build_lib not in sys.path:
|
||||
sys.path.append(abs_build_lib)
|
||||
|
||||
|
|
Loading…
Reference in New Issue