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
+++ b/setup.py
@@ -28,6 +28,10 @@ anmviewer = False  # It’s currently broken anyway.
 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