# HG changeset patch # User Emmanuel Gil Peyrot # Date 1409857665 -7200 # Node ID 8a8c2e5196372396e83fb89cb117478ce03804b4 # Parent b8df946d394d062e1bc2d62de5c1848a87fa42a8 Make setup.py chdir into our root directory, to prevent it to fail when called from elsewhere. diff --git a/setup.py b/setup.py --- 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