Mercurial > touhou
diff setup.py @ 576:f3778145d7e7
Allow setup.py to be called without arguments.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 12 Aug 2014 15:07:54 +0200 |
parents | 7f113f15300b |
children | 8a8c2e519637 |
line wrap: on
line diff
--- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ nthreads = 4 # How many processes to us # Hack to prevent `setup.py clean` from compiling Cython files. -if sys.argv[1] == 'clean': +if len(sys.argv) > 1 and sys.argv[1] == 'clean': import shutil shutil.rmtree('build', ignore_errors=True) for directory, _, files in os.walk('pytouhou'):