diff options
author | daid303 <daid303@gmail.com> | 2012-12-19 12:52:02 +0400 |
---|---|---|
committer | daid303 <daid303@gmail.com> | 2012-12-19 12:52:02 +0400 |
commit | d8923b891b5e49f6a78f86d5b7b67b7db1a00aba (patch) | |
tree | 62474fcb5ae06f0d4a00c1e9593f561afa38f4f6 | |
parent | 9d46c12da12016c3f9ce48e4b49673ec79d3bb53 (diff) |
Add extra requirements to linux run script.
-rwxr-xr-x | package.sh | 4 | ||||
-rwxr-xr-x | scripts/linux/cura.sh | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/package.sh b/package.sh index 89745cc1e8..3c95415fe1 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 05f00075b1..a198843174 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 $@ |