Changeset 216 for trunk/setup.py.in
- Timestamp:
- 04/08/10 15:31:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup.py.in
r215 r216 13 13 # Try some usefule defaults if not set 14 14 # 15 PBS_LIB_DIR='@pbs path@'15 PBS_LIB_DIR='@pbs_library_dir@' 16 16 NEW_BUILD_SYSTEM=1 17 17 … … 48 48 ### Make symlinks to right torque version 49 49 # 50 VERSION = "@pbs_version@" 51 tmp = VERSION.split('.') 52 major_version = '.'.join( tmp[0:2] ) 53 54 55 56 os.chdir('src') 57 58 ## Always unlink previous links 59 # 60 try: 61 os.unlink('pbs.py') 62 os.unlink('pbs_wrap.c') 63 except OSError: 64 pass 65 66 if 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') 69 else: 70 os.symlink('pbs_wrap_2.1.c', 'pbs_wrap.c') 71 os.symlink('pbs_2.1.py', 'pbs.py') 72 os.chdir('..') 50 73 51 74 setup ( name = 'pbs_python',
Note: See TracChangeset
for help on using the changeset viewer.