From 7311729790172a6f85db0c31299f06feba217e87 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Mon, 23 Aug 2010 16:47:09 +0000 Subject: Fix builds with builddir != srcdir, introduced in r83988. os.path.dirname(__file__) points to the scrdir, not the builddir. Use os.getcwd() instead. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c81358c..8e51960 100644 --- a/setup.py +++ b/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) -- cgit v0.12