Skip to content

Running a local user installation

gingergeeks edited this page Dec 27, 2012 · 3 revisions

When developing and testing PySlurm this is an example of the general method I use :

  • Set the Python path to the Cython to build PySlurm and the PySlurm development library directory to be able to run PySlurm :

    export PYTHONPATH=/home/mark/Cython-0.17.3:/home/mark/pyslurm/build/lib.linux-x86_64-2.7/

  • Set the Shared library path to point to the Slurm version being built against :

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/slurm/2.5.0/lib/

  • Change into the PySlurm directory :

    cd /home/mark/pyslurm

  • Build PySlurm for the Slurm version (see README.rst) without installing so we use PYTHONPATH :

    python setup.py build --slurm=PATH_TO_SLURM_DIR

  • Run any of example programs if build was successful :

    python examples/slurm_ctl.py