2012-03-10 19:25:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2012-07-05 11:08:13 +00:00
|
|
|
python2.7 -c ''
|
|
|
|
|
if [ $? != 0 ]; then
|
|
|
|
|
echo "Requires python2.7"
|
|
|
|
|
echo " Install python2.7"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
python2.7 -c 'import OpenGL'
|
2012-03-10 19:25:11 +00:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
|
echo "Requires PyOpenGL"
|
2012-03-19 11:09:50 +00:00
|
|
|
echo " sudo easy_install PyOpenGL"
|
2012-03-10 19:25:11 +00:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2012-07-05 11:08:13 +00:00
|
|
|
python2.7 -c 'import wx'
|
2012-03-10 19:25:11 +00:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
|
echo "Requires wx. Download and install (the Cocoa/64-bit variant) from:"
|
|
|
|
|
echo " http://www.wxpython.org/download.php"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2012-07-05 11:08:13 +00:00
|
|
|
python2.7 -c 'import serial'
|
2012-03-10 19:25:11 +00:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
|
echo "Requires pyserial."
|
2012-03-19 11:09:50 +00:00
|
|
|
echo " sudo easy_install pyserial"
|
2012-03-10 19:25:11 +00:00
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR=`dirname $0`
|
2012-03-24 10:01:35 +00:00
|
|
|
python ${SCRIPT_DIR}/Cura/cura.py
|
2012-03-10 19:25:11 +00:00
|
|
|
|