Changeset 336


Ignore:
Timestamp:
03/10/15 12:12:38 (9 years ago)
Author:
bas
Message:

preparing for new pbs_python release that supports torque 5.x, see #47

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGES

    r323 r336  
     1=========== 4.6.0
     2 * Added support for torque version 5.x. Note: the rm interface does not work for me on debian wheezy.
     3   Author: Bas van der Vlies
     4
    15=========== 4.5.0
    26 * new_rack_pbsmon.py: Added option -j/--joby. It will show the nodes that are used by the specified job
  • trunk/README

    r290 r336  
    1515The Python wrapper class is tested on:
    1616
    17   - Intel cluster debian GNU/LINUX woody/sarge OPENPBS 2.3.16,
    18     TORQUE 1.0.1p4, 1.1.0p4 and up
    19 
    20   - For X86_64 systems you have to compile torque/openpbs with
    21     the -fPIC option. Else you can not build the python module
    22 
    23   - TRU64 system, NOTE: must rename libnet.a to libpbs_net.a and
    24     edit setup.py to reflect the change. There is also a system wide
    25     libnet.so.
    26 
     17  - LISA cluster debian wheezy, torque 2.5.7
     18  - LTC test cluster debian wheezy, torque 5.0.1
     19  - LTC test cluster centos 6, torque 5.0.1
    2720  - It should run on different OSes.
    28 
    29 In the past our Alpha cluster was redhat (6.2)  and we had to
    30 add '-lots' to the LIBS line
    3121
    3222-- Compile and install the package: (Require python 2.1 and higher)
    3323
    34   As for python version 1.6 and higher the procedure is:
     24  As for python version 2.1 and higher the procedure is:
    3525    ./configure
    3626    make
     
    7262
    7363--
    74 ********************************************************************
    75 *                                                                  *
    76 *  Bas van der Vlies                     e-mail: basv@sara.nl      *
    77 *  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
    78 *  Kruislaan 415                         fax:    +31 20 6683167    *
    79 *  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
    80 *                                                                  *
    81 ********************************************************************
     64Bas van der Vlies
     65| Operations, Support & Development | SURFsara | Science Park 140 | 1098 XG  Amsterdam
     66| T +31 (0) 20 800 1300  | bas.vandervlies@surfsara.nl | www.surfsara.nl |
  • trunk/debian/changelog

    r316 r336  
     1pbs-python (4.6.0-1) UNRELEASED; urgency=low
     2
     3  * Added support torque 5.X
     4
     5 -- Bas van der Vlies <bas.vandervlies@surfsara.nl>  Tue, 10 Mar 2015 12:03:25 +0100
     6
    17pbs-python (4.4.1-1) unstable; urgency=low
    28
  • trunk/pbs_python.spec

    r316 r336  
    44
    55Name: pbs_python
    6 Version: 4.4.1
     6Version: 4.6.0
    77Release: 1%{?dist}
    88License: See LICENSE
  • trunk/setup.py.in

    r316 r336  
    3434except OSError:
    3535    pass
     36
     37if LooseVersion(VERSION) >= LooseVersion('5.0'):
     38
     39    inc=os.environ.get('PBS_PYTHON_INCLUDEDIR','/usr/include/torque')
     40    os.environ['CC']='g++'
     41    os.environ['CFLAGS']=' '.join(os.environ.get('CFLAGS','').split(' ')+['-I%s'%inc])
     42   
     43    if not os.path.exists(os.path.join(inc,'log.h')):
     44        print 'Failed to find log.h in include dir %s. (Set include dir via PBS_PYTHON_INCLUDEDIR variable)'%inc
     45        sys.exit(2)
     46 
     47    for fn in glob.glob('*.h'):
     48        os.remove(fn)
     49     
     50    TORQUE_VERSION='TORQUE_5'
     51    SOURCE_FILE='src/5.x/pbs_wrap.cxx'
     52
     53    os.symlink('5.X/pbs.py', 'pbs.py')
    3654
    3755if LooseVersion(VERSION) >= LooseVersion('4.2'):
Note: See TracChangeset for help on using the changeset viewer.