Changeset 218
- Timestamp:
- 04/09/10 09:34:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup.py.in
r216 r218 14 14 # 15 15 PBS_LIB_DIR='@pbs_library_dir@' 16 NEW_BUILD_SYSTEM=117 18 if not PBS_LIB_DIR:19 for dir in ['/usr/lib', '/usr/local/lib', '/opt/pbs/usr/lib', '/usr/lib/torque', '/opt/pbs/lib', '/opt/torque/lib' ]:20 dummy_new = os.path.join(dir, 'libtorque.so')21 dummy_old = os.path.join(dir, 'libpbs.a')22 if os.path.exists(dummy_new):23 PBS_LIB_DIR=dir24 break25 elif os.path.exists(dummy_old):26 PBS_LIB_DIR=dir27 NEW_BUILD_SYSTEM=028 break29 16 30 17 if not PBS_LIB_DIR: … … 35 22 # Test if we have all the libs: 36 23 # 37 if NEW_BUILD_SYSTEM: 38 LIBS = ['torque'] 39 else: 40 LIBS = ['log', 'net', 'pbs'] 41 for lib in LIBS: 42 library = 'lib%s.a' %(lib) 43 dummy = os.path.join(PBS_LIB_DIR, library) 44 if not os.path.exists(dummy): 45 print 'You need to install "%s" in %s' %(library, PBS_LIB_DIR) 46 sys.exit(1) 24 LIBS = [PBS_LIB_DIR] 47 25 48 26 ### Make symlinks to right torque version … … 51 29 tmp = VERSION.split('.') 52 30 major_version = '.'.join( tmp[0:2] ) 53 54 31 55 32 … … 70 47 os.symlink('pbs_wrap_2.1.c', 'pbs_wrap.c') 71 48 os.symlink('pbs_2.1.py', 'pbs.py') 49 72 50 os.chdir('..') 73 51 74 52 setup ( name = 'pbs_python', 75 version = ' 3.8.0',53 version = '4.0.0', 76 54 description = 'openpbs/torque python interface', 77 55 author = 'Bas van der Vlies', … … 86 64 ext_modules = [ 87 65 Extension( '_pbs', ['src/pbs_wrap.c'], 88 library_dirs = [ PBS_LIB_DIR ] ,89 libraries = LIBS)66 library_dirs = [ PBS_LIB_DIR ]) 67 #libraries = [PBS_LIB_DIR]) 90 68 ] 91 69 )
Note: See TracChangeset
for help on using the changeset viewer.