Changeset 216 for trunk/setup.py.in


Ignore:
Timestamp:
04/08/10 15:31:29 (14 years ago)
Author:
bas
Message:

New configure options to determine version and where the libs are installed, borrowed from mpiexec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.py.in

    r215 r216  
    1313# Try some usefule defaults if not set
    1414#
    15 PBS_LIB_DIR='@pbspath@'
     15PBS_LIB_DIR='@pbs_library_dir@'
    1616NEW_BUILD_SYSTEM=1
    1717
     
    4848### Make symlinks to right torque version
    4949#
     50VERSION = "@pbs_version@"
     51tmp = VERSION.split('.')
     52major_version = '.'.join( tmp[0:2] )
     53
     54
     55
     56os.chdir('src')
     57
     58## Always unlink previous links
     59#
     60try:
     61        os.unlink('pbs.py')
     62        os.unlink('pbs_wrap.c')
     63except OSError:
     64        pass
     65
     66if major_version in [ '2.3', '2.4']:
     67        os.symlink('pbs_wrap_2.4.c', 'pbs_wrap.c')
     68        os.symlink('pbs_2.4.py', 'pbs.py')
     69else:
     70        os.symlink('pbs_wrap_2.1.c', 'pbs_wrap.c')
     71        os.symlink('pbs_2.1.py', 'pbs.py')
     72os.chdir('..')
    5073
    5174setup ( name = 'pbs_python',
Note: See TracChangeset for help on using the changeset viewer.