Add extra requirements to linux run script.
This commit is contained in:
parent
9d46c12da1
commit
d8923b891b
2 changed files with 14 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 $@
|
||||
|
|
|
|||
Loading…
Reference in a new issue