Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3536 -- Fixed setup.py so that it prints a usage message if you

accidently invoke it without any arguments.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 97256bc39cb07b60afd08f799d31282b0813469a 1 parent a52cc03
Malcolm Tredinnick authored February 20, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  setup.py
2  setup.py
@@ -28,7 +28,7 @@
28 28
 
29 29
 # Small hack for working with bdist_wininst.
30 30
 # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
31  
-if sys.argv[1] == 'bdist_wininst':
  31
+if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
32 32
     for file_info in data_files:
33 33
         file_info[0] = '/PURELIB/%s' % file_info[0]
34 34
 

0 notes on commit 97256bc

Please sign in to comment.
Something went wrong with that request. Please try again.