-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update the build-script to allow parallel builds Well, doesn't really do much right now since it's just one file being compiled - but maybe it will matter in the future. Also make it so the "install" command doesn't actually build anything, and just installs. Update the README to promote usage of the build.sh script Also remove the installation instruction for PyPi - it's not up there yet. * fix bdist_rpm not including pyslurm.pyx Just do a recursive include of all .pyx .pxd .pxi .h files
- Loading branch information
Showing
5 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
################################### | ||
# Build PySlurm | ||
################################### | ||
usage() { echo "Usage: $0 [-j jobs]" 1>&2; exit 1; } | ||
|
||
cd pyslurm | ||
echo "---> Building PySlurm..." | ||
python$PYTHON setup.py build | ||
# Option to allow parallel build | ||
OPT_JOBS=1 | ||
|
||
echo "---> Installing PySlurm..." | ||
python$PYTHON setup.py install | ||
PYTHON_VERSION=3 | ||
|
||
while getopts ":j:" o; do | ||
case "${o}" in | ||
j) | ||
OPT_JOBS=${OPTARG} | ||
;; | ||
*) | ||
usage | ||
;; | ||
esac | ||
done | ||
|
||
shift $((OPTIND-1)) | ||
|
||
python"$PYTHON_VERSION" setup.py build -j "$OPT_JOBS" | ||
python"$PYTHON_VERSION" setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,12 @@ docs=build_sphinx | |
[bdist_rpm] | ||
release = 1 | ||
packager = Giovanni Torres <[email protected]> | ||
doc_files = CONTRIBUTORS.rst | ||
README.rst | ||
THANKS.rst | ||
doc_files = README.md | ||
doc/ | ||
examples/ | ||
build_requires = python-devel >= 2.7 | ||
Cython >= 0.19 | ||
python-sphinx >= 1.1 | ||
slurm-devel >= 17.11.5 | ||
python-nose | ||
requires = slurm-slurmd slurm-slurmdbd | ||
build_requires = python3-devel >= 3.6 | ||
slurm-devel >= 22.05.0 | ||
requires = slurm | ||
use_bzip2 = 1 | ||
|
||
[build_sphinx] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters