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	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'):