|
|
|
@ -48,7 +48,8 @@ def f2py_call_str():
|
|
|
|
|
if os.path.basename(sys.executable).endswith('2'):
|
|
|
|
|
options = ('f2py2', 'f2py2.6', 'f2py2.7',)
|
|
|
|
|
else: # on Windows and other Linux using python/f2py
|
|
|
|
|
options = ('f2py.bat', 'f2py', 'f2py2.6', 'f2py2.7', 'f2py.py',)
|
|
|
|
|
options = ('f2py.exe', 'f2py.bat', 'f2py', 'f2py2.6', 'f2py2.7',
|
|
|
|
|
'f2py.py',)
|
|
|
|
|
for k in options:
|
|
|
|
|
if which(k):
|
|
|
|
|
# Found the f2py path, no need to look further
|
|
|
|
@ -62,4 +63,3 @@ def f2py_call_str():
|
|
|
|
|
except NameError:
|
|
|
|
|
raise UserWarning('Couldn\'t locate f2py. '
|
|
|
|
|
'Should be part of NumPy installation.')
|
|
|
|
|
|
|
|
|
|