From d8923b891b5e49f6a78f86d5b7b67b7db1a00aba Mon Sep 17 00:00:00 2001 From: daid303 Date: Wed, 19 Dec 2012 09:52:02 +0100 Subject: [PATCH] Add extra requirements to linux run script. --- package.sh | 4 ++-- scripts/linux/cura.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) 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 $@ -- 2.30.2