diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2008-04-10 11:05:16 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2008-04-10 11:05:16 +0000 |
commit | 34e3f4966dcbd14094e00b11f6379f5c13a7c6c1 (patch) | |
tree | 9b329765e897215074630eb3433fdd442d955f17 /numpy/distutils/interactive.py | |
parent | be25d94bfc6f72535700432e87a52e4a15f0f8f5 (diff) | |
download | numpy-34e3f4966dcbd14094e00b11f6379f5c13a7c6c1.tar.gz |
Fix issue 715.
Diffstat (limited to 'numpy/distutils/interactive.py')
-rw-r--r-- | numpy/distutils/interactive.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/numpy/distutils/interactive.py b/numpy/distutils/interactive.py index 2c10154e6..e3dba04eb 100644 --- a/numpy/distutils/interactive.py +++ b/numpy/distutils/interactive.py @@ -102,20 +102,21 @@ def interactive_sys_argv(argv): 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 |