# HG changeset patch # User Emmanuel Gil Peyrot # Date 1407848874 -7200 # Node ID f3778145d7e78f23b99341fe69337a0d738ea74e # Parent e4c9eafab6d0c38ec44c0546d3ace0b0de9a2e96 Allow setup.py to be called without arguments. diff --git a/setup.py b/setup.py --- 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'):