-
Notifications
You must be signed in to change notification settings - Fork 119
Running a local user installation
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
Intro
Getting Started
Development
- Running a local user installation
- Testing PySlurm with Docker
- Continuous Integration
- Updating PySlurm for New Slurm Releases
- Using latest version of Cython
- Strings and bytes in Cython
- Profiling PySlurm
- Checking for memory leaks
- Do's and Dont's
- Slurm shell completion
Contributing