[Numpy-svn] r5011 - trunk/numpy/distutils

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Apr 10 07:05:20 EDT 2008


Author: pearu
Date: 2008-04-10 06:05:16 -0500 (Thu, 10 Apr 2008)
New Revision: 5011

Modified:
   trunk/numpy/distutils/interactive.py
Log:
Fix issue 715.

Modified: trunk/numpy/distutils/interactive.py
===================================================================
--- trunk/numpy/distutils/interactive.py	2008-04-10 09:15:00 UTC (rev 5010)
+++ trunk/numpy/distutils/interactive.py	2008-04-10 11:05:16 UTC (rev 5011)
@@ -102,20 +102,21 @@
     while 1:
         show_tasks(argv,c_compiler_name, f_compiler_name)
         try:
-            task = raw_input('Choose a task (^D to quit, Enter to continue with setup): ').lower()
+            task = raw_input('Choose a task (^D to quit, Enter to continue with setup): ')
         except EOFError:
             print
             task = 'quit'
+        ltask = task.lower()
         if task=='': break
-        if task=='quit': sys.exit()
-        task_func = task_dict.get(task,None)
+        if ltask=='quit': sys.exit()
+        task_func = task_dict.get(ltask,None)
         if task_func is None:
-            if task[0]=='c':
+            if ltask[0]=='c':
                 c_compiler_name = task[1:]
                 if c_compiler_name=='none':
                     c_compiler_name = None
                 continue
-            if task[0]=='f':
+            if ltask[0]=='f':
                 f_compiler_name = task[1:]
                 if f_compiler_name=='none':
                     f_compiler_name = None




More information about the Numpy-svn mailing list