[libfann] 02/06: python-build: Allow selection of the Python interpreter to use
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sun Oct 5 17:35:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to branch master
in repository libfann.
commit f76ea742d5ddecef7c643469d3f6b528f886686e
Author: Christian Kastner <debian at kvr.at>
Date: Sun Oct 5 00:39:33 2014 +0200
python-build: Allow selection of the Python interpreter to use
Don't hardcode "python" as the interpreter as this will always use the default
interpreter.
---
debian/tests/python-build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/tests/python-build b/debian/tests/python-build
index e8d81b2..7a2f775 100644
--- a/debian/tests/python-build
+++ b/debian/tests/python-build
@@ -9,6 +9,9 @@ then
exit 1
fi
+# Set the interpreter, or use the default
+: ${PYINTERPRETER:=python}
+
# Copy the simple example and the training data to $ADTTMP, and execute it
cp python/examples/simple_train.py "$ADTTMP"
cp examples/xor.data "$ADTTMP"
@@ -18,5 +21,5 @@ cd "$ADTTMP"
sed -i -r -e 's|\.\./\.\./examples/||' simple_train.py
sed -i -r -e 's|nets/||' simple_train.py
-python simple_train.py
+$PYINTERPRETER simple_train.py
echo "run: OK"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git
More information about the debian-science-commits
mailing list