PySlurm: Slurm interface for Python
Authors: | Mark Roberts <mark@gingergeeks.co.uk> and Stephan Gorget <phantez@gmail.com> |
---|
Overview
Currently PySlurm is under development to move from it's thin layer on top of the Slurm C API to an object orientated interface.
The current branch is based on the Slurm 2.5.0 API
Prerequistes
This version has been tested with Slurm 2.5.0, Cython 0.17.3 and Python 2.7
- [Slurm] http://www.schedmd.com
- [Python] http://www.python.org
- [Cython] http://www.cython.org
Installation
You will need to instruct the setup.py script where either the SLURM install root directory or where the SLURM libraries and SLURM include files are :
-
Slurm default directory (/usr):
- python setup.py build
- python setup.py install
-
Indicate Blue Gene type (L/P/Q) on build line:
- --bgl or --bgp or --bgq
-
Slurm root directory (Alternate installation directory):
- python setup.py build --slurm=PATH_TO_SLURM_DIR
- python setup.py install
-
Separate Slurm library and include directory paths:
- python setup.py build --slurm-lib=PATH_TO_SLURM_LIB --slurm-inc=PATH_TO_SLURM_INC
- python setup.py install
If you still have issues then you could code this directly into the setup.py
#. The build will automatically call a cleanup procedure to remove temporary build files but this can be called directly as well with :
- python setup.py clean
Documentation
Prebuilt documentation for the module can be reviewed online, and the source code is available on GitHub.