Mercurial > touhou
comparison setup.py @ 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 | f3778145d7e7 |
children | e15672733c93 |
comparison
equal
deleted
inserted
replaced
579:b8df946d394d | 580:8a8c2e519637 |
---|---|
24 extensions = [] | 24 extensions = [] |
25 | 25 |
26 debug = False # True to generate HTML annotations and display infered types. | 26 debug = False # True to generate HTML annotations and display infered types. |
27 anmviewer = False # It’s currently broken anyway. | 27 anmviewer = False # It’s currently broken anyway. |
28 nthreads = 4 # How many processes to use for Cython compilation. | 28 nthreads = 4 # How many processes to use for Cython compilation. |
29 | |
30 | |
31 # Hack to move us to the correct build directory. | |
32 os.chdir(os.path.join(os.getcwd(), os.path.dirname(__file__))) | |
29 | 33 |
30 | 34 |
31 # Hack to prevent `setup.py clean` from compiling Cython files. | 35 # Hack to prevent `setup.py clean` from compiling Cython files. |
32 if len(sys.argv) > 1 and sys.argv[1] == 'clean': | 36 if len(sys.argv) > 1 and sys.argv[1] == 'clean': |
33 import shutil | 37 import shutil |