changeset 580:8a8c2e519637

Make setup.py chdir into our root directory, to prevent it to fail when called from elsewhere.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 04 Sep 2014 21:07:45 +0200
parents b8df946d394d
children cb8a443bc046
files setup.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Sun Aug 17 16:16:58 2014 +0200
+++ b/setup.py	Thu Sep 04 21:07:45 2014 +0200
@@ -28,6 +28,10 @@
 nthreads = 4  # How many processes to use for Cython compilation.
 
 
+# Hack to move us to the correct build directory.
+os.chdir(os.path.join(os.getcwd(), os.path.dirname(__file__)))
+
+
 # Hack to prevent `setup.py clean` from compiling Cython files.
 if len(sys.argv) > 1 and sys.argv[1] == 'clean':
     import shutil