chiark / gitweb /
Add extra requirements to linux run script.
authordaid303 <daid303@gmail.com>
Wed, 19 Dec 2012 08:52:02 +0000 (09:52 +0100)
committerdaid303 <daid303@gmail.com>
Wed, 19 Dec 2012 08:52:02 +0000 (09:52 +0100)
package.sh
scripts/linux/cura.sh

index 89745cc1e801d85aef63001ee593ee4a532d9610..3c95415fe125c6639a1997ebaa79c642542075b5 100755 (executable)
@@ -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
index 05f00075b1354b997ded7776cdce91781add00fd..a198843174ff1b9c5122b3ddefedac5007e20f2e 100755 (executable)
@@ -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 $@