mick-t / pyslurm

Python Interface to Slurm

Home Page:https://pyslurm.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Friendly fork from https://github.com/PySlurm/pyslurm for Slurm 20.02 preparation.

PySlurm: Slurm Interface for Python

https://travis-ci.org/PySlurm/pyslurm.svg?branch=19.05.0

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.

This release is based on Slurm 19.05.

Prerequisites

This PySlurm branch has been tested with:

  • Cython 0.19.2, and the latest stable
  • Python 2.7, 3.4, 3.5 and 3.6
  • Slurm 19.05.0

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:

  1. Slurm default directory (/usr):

    • python setup.py build
    • python setup.py install
  2. Indicate Blue Gene type Q on build line:

    • --bgq
  3. Slurm root directory (Alternate installation directory):

    • python setup.py build --slurm=PATH_TO_SLURM_DIR
    • python setup.py install
  4. 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
  5. The build will automatically call a cleanup procedure to remove temporary build files but this can be called directly if needed as well with :

    • python setup.py clean

Documentation

The API documentation is hosted at https://pyslurm.github.io.

To build the docs locally, use Sphinx to generate the documentation from the reStructuredText based docstrings found in the pyslurm module once it is built:

cd doc
make clean
make html

Authors

Help

Ask questions on the pyslurm group.

About

Python Interface to Slurm

https://pyslurm.github.io

License:GNU General Public License v2.0


Languages

Language:Python 97.8%Language:C 1.2%Language:Shell 1.0%