Mercurial > touhou
changeset 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 | e4c9eafab6d0 |
children | e35a083d4208 |
files | setup.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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'):