Changeset 218 for trunk


Ignore:
Timestamp:
04/09/10 09:34:10 (14 years ago)
Author:
bas
Message:

setup.py.in:

  • clean up old code. Only support pbs-config installations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.py.in

    r216 r218  
    1414#
    1515PBS_LIB_DIR='@pbs_library_dir@'
    16 NEW_BUILD_SYSTEM=1
    17 
    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=dir
    24                         break
    25                 elif os.path.exists(dummy_old):
    26                         PBS_LIB_DIR=dir
    27                         NEW_BUILD_SYSTEM=0
    28                         break
    2916
    3017if not PBS_LIB_DIR:
     
    3522# Test if we have all the libs:
    3623#
    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)
     24LIBS = [PBS_LIB_DIR]
    4725
    4826### Make symlinks to right torque version
     
    5129tmp = VERSION.split('.')
    5230major_version = '.'.join( tmp[0:2] )
    53 
    5431
    5532
     
    7047        os.symlink('pbs_wrap_2.1.c', 'pbs_wrap.c')
    7148        os.symlink('pbs_2.1.py', 'pbs.py')
     49
    7250os.chdir('..')
    7351
    7452setup ( name = 'pbs_python',
    75         version = '3.8.0',
     53        version = '4.0.0',
    7654        description = 'openpbs/torque python interface',
    7755        author = 'Bas van der Vlies',
     
    8664        ext_modules = [
    8765                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])
    9068        ]
    9169)
Note: See TracChangeset for help on using the changeset viewer.