From: daid303 Date: Wed, 19 Dec 2012 08:52:02 +0000 (+0100) Subject: Add extra requirements to linux run script. X-Git-Tag: 13.03~150 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d8923b891b5e49f6a78f86d5b7b67b7db1a00aba;p=cura.git Add extra requirements to linux run script. --- diff --git a/package.sh b/package.sh index 89745cc1..3c95415f 100755 --- a/package.sh +++ b/package.sh @@ -8,10 +8,10 @@ ############################# ##Select the build target -# BUILD_TARGET=${1:-all} +BUILD_TARGET=${1:-all} #BUILD_TARGET=win32 #BUILD_TARGET=linux -BUILD_TARGET=darwin +#BUILD_TARGET=darwin ##Do we need to create the final archive ARCHIVE_FOR_DISTRIBUTION=1 diff --git a/scripts/linux/cura.sh b/scripts/linux/cura.sh index 05f00075..a1988431 100755 --- a/scripts/linux/cura.sh +++ b/scripts/linux/cura.sh @@ -19,6 +19,18 @@ if [ $? != 0 ]; then exit 1 fi +python -c 'import numpy' +if [ $? != 0 ]; then + echo "Requires numpy." + exit 1 +fi + +python -c 'import power' +if [ $? != 0 ]; then + echo "Requires power module from https://github.com/GreatFruitOmsk/Power." + exit 1 +fi + SCRIPT_DIR=`dirname $0` cd $SCRIPT_DIR python -m Cura.cura $@