# HG changeset patch # User Emmanuel Gil Peyrot # Date 1407848874 -7200 # Node ID f3778145d7e78f23b99341fe69337a0d738ea74e # Parent e4c9eafab6d0c38ec44c0546d3ace0b0de9a2e96 Allow setup.py to be called without arguments. diff -r e4c9eafab6d0 -r f3778145d7e7 setup.py --- a/setup.py Sat Jul 26 14:46:03 2014 +0200 +++ b/setup.py Tue Aug 12 15:07:54 2014 +0200 @@ -29,7 +29,7 @@ # 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'):