We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3368f commit 1b96fdcCopy full SHA for 1b96fdc
mkrpm.sh
@@ -27,9 +27,10 @@ if [ $# -lt 1 ]; then
27
exit 1
28
fi
29
30
+which python &>/dev/null && PYTHON=python || PYTHON=python3
31
DIST=$1
32
FORCE=${2:-no}
-VERS=$(python -c "import ClusterShell; print(ClusterShell.__version__)")
33
+VERS=$($PYTHON -c "import ClusterShell; print(ClusterShell.__version__)")
34
PKGNAME=ClusterShell-$VERS
35
36
echo "Building version $VERS for $DIST"
@@ -47,7 +48,7 @@ if [ ! -f dist/$PKGNAME.tar.gz -o $FORCE = "force" ]; then
47
48
# Build base source package
49
#
50
rm -f dist/$PKGNAME.tar.gz
- python setup.py sdist
51
+ $PYTHON setup.py sdist
52
ls -l $PWD/dist/$PKGNAME.tar.gz
53
md5sum dist/$PKGNAME.tar.gz
54
echo "Base source tarball successfully built"
0 commit comments