Changeset 364


Ignore:
Timestamp:
Sep 7, 2011 1:38:20 PM (10 years ago)
Author:
toby
Message:

warn if f2py is not found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fsource/SConstruct

    r363 r364  
    151151#==========================================================================================
    152152# get the python version number from the python image in the f2py directory
     153# first check if we have a working path to f2py:
     154f2pyprogram = os.path.normpath(os.path.join(F2PYpath,'f2py'))
     155if sys.platform == "win32" and os.path.splitext(f2pyprogram)[1].lower() != '.exe':
     156    f2pyprogram = f2pyprogram + '.exe'
     157if not is_exe(f2pyprogram):
     158    print '''
     159ERROR: The f2py program was not found. If this program is installed
     160but not in your path, you should specify the path on the command line:
     161   scons -Q F2PYpath=/Library/Frameworks/Python.framework/Versions/6.2/bin/
     162   scons -Q F2PYpath=D:/Python27/Scripts
     163'''
     164    sys.exit()
    153165#  find the python location. Note that on Windows it may be in the parent of the f2py location
    154166# then run it to get info about the verision and the number of bits
Note: See TracChangeset for help on using the changeset viewer.