Changeset 290 for trunk/setup.py.in


Ignore:
Timestamp:
04/29/13 17:26:07 (11 years ago)
Author:
bas
Message:

changes sara to SURFsara

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup.py.in

    r271 r290  
    1717
    1818if not PBS_LIB_DIR:
    19         print 'Please specify where the PBS libraries are!!'
    20         print 'edit setup.py and fill in the PBS_LIB_DIR variable'
    21         sys.exit(1)
     19    print 'Please specify where the PBS libraries are!!'
     20    print 'edit setup.py and fill in the PBS_LIB_DIR variable'
     21    sys.exit(1)
    2222
    2323LIBS = ['torque']
     
    3939#
    4040try:
    41         os.unlink('pbs.py')
    42         os.unlink('pbs_wrap.c')
     41    os.unlink('pbs.py')
     42    os.unlink('pbs_wrap.c')
    4343except OSError:
    44         pass
     44    pass
    4545
    4646if major_version  >= 2 and minor_version >= 4 and build_version >= 7:
    47         os.symlink('pbs_wrap_2.4.c', 'pbs_wrap.c')
    48         os.symlink('pbs_2.4.py', 'pbs.py')
    49         TORQUE_VERSION='TORQUE_2_4'
     47    os.symlink('pbs_wrap_2.4.c', 'pbs_wrap.c')
     48    os.symlink('pbs_2.4.py', 'pbs.py')
     49    TORQUE_VERSION='TORQUE_2_4'
    5050else:
    51         os.symlink('pbs_wrap_2.1.c', 'pbs_wrap.c')
    52         os.symlink('pbs_2.1.py', 'pbs.py')
    53         TORQUE_VERSION='TORQUE_OLD'
     51    os.symlink('pbs_wrap_2.1.c', 'pbs_wrap.c')
     52    os.symlink('pbs_2.1.py', 'pbs.py')
     53    TORQUE_VERSION='TORQUE_OLD'
    5454
    5555os.chdir('..')
    5656
    5757setup (
    58         name = 'pbs_python',
    59         version = '4.1.3',
    60         description = 'openpbs/torque python interface',
    61         license = 'LGPLV3',
    62         author = 'Bas van der Vlies',
    63         author_email = 'basv@sara.nl',
    64         url = 'http://subtrac.sara.nl/oss/pbs_python',
     58    name = 'pbs_python',
     59    version = '4.3.5',
     60    description = 'openpbs/torque python interface',
     61    license = 'LGPLV3',
     62    author = 'Bas van der Vlies',
     63    author_email = 'bas.vandervlies@surfsara.nl',
     64    url = 'http://oss.trac.surfsara.nl/pbs_python',
    6565
    6666
    67         extra_path = 'pbs',
    68                 package_dir = { '' : 'src' },
    69                 py_modules = [ 'pbs', 'PBSQuery', 'PBSAdvancedParser' ],
     67    extra_path = 'pbs',
     68        package_dir = { '' : 'src' },
     69        py_modules = [ 'pbs', 'PBSQuery', 'PBSAdvancedParser' ],
    7070
    71         ext_modules = [
    72                 Extension( '_pbs', ['src/pbs_wrap.c'],
    73                 library_dirs = [ PBS_LIB_DIR ],
    74                 extra_link_args = [ PBS_LIB_COMPILE_LINE ],
    75                 define_macros =  [ (TORQUE_VERSION, None) ],
    76                 libraries = LIBS,
    77                 )
    78         ]
     71    ext_modules = [
     72        Extension( '_pbs', ['src/pbs_wrap.c'],
     73        library_dirs = [ PBS_LIB_DIR ],
     74        extra_link_args = [ PBS_LIB_COMPILE_LINE ],
     75        define_macros =  [ (TORQUE_VERSION, None) ],
     76        libraries = LIBS,
     77        )
     78    ]
    7979)
Note: See TracChangeset for help on using the changeset viewer.