python in kicad-install.sh, if user enables it
This commit is contained in:
parent
73ca1ed754
commit
683a655fa7
|
@ -11,6 +11,14 @@
|
||||||
# Set where the 3 source trees will go, use a full path
|
# Set where the 3 source trees will go, use a full path
|
||||||
WORKING_TREES=~/kicad_sources
|
WORKING_TREES=~/kicad_sources
|
||||||
|
|
||||||
|
# CMake Options
|
||||||
|
OPTS="$OPTS -DCMAKE_BUILD_TYPE=Release"
|
||||||
|
OPTS="$OPTS -DUSE_FP_LIB_TABLE=ON"
|
||||||
|
OPTS="$OPTS -DBUILD_GITHUB_PLUGIN=ON"
|
||||||
|
|
||||||
|
# Python scripting, uncomment to enable
|
||||||
|
#OPTS="$OPTS -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON"
|
||||||
|
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
|
@ -48,7 +56,8 @@ install_prerequisites()
|
||||||
libcairo2-dev \
|
libcairo2-dev \
|
||||||
libglew-dev \
|
libglew-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libwxgtk2.8-dev
|
libwxgtk2.8-dev \
|
||||||
|
python-wxgtk2.8
|
||||||
|
|
||||||
# assume all yum systems have same prerequisites
|
# assume all yum systems have same prerequisites
|
||||||
elif [ "$(expr match "$PM" '.*\(yum\)')" == "yum" ]; then
|
elif [ "$(expr match "$PM" '.*\(yum\)')" == "yum" ]; then
|
||||||
|
@ -65,7 +74,8 @@ install_prerequisites()
|
||||||
libcairo2-dev \
|
libcairo2-dev \
|
||||||
libglew-dev \
|
libglew-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libwxgtk2.8-dev
|
libwxgtk2.8-dev \
|
||||||
|
python-wxgtk2.8
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
echo "Incompatible System. Neither 'yum' nor 'apt-get' found. Not possible to continue."
|
echo "Incompatible System. Neither 'yum' nor 'apt-get' found. Not possible to continue."
|
||||||
|
@ -162,10 +172,7 @@ install_or_update()
|
||||||
cd kicad.bzr
|
cd kicad.bzr
|
||||||
if [ ! -d "build" ]; then
|
if [ ! -d "build" ]; then
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release \
|
cmake $OPTS ../
|
||||||
-DUSE_FP_LIB_TABLE=ON \
|
|
||||||
-DBUILD_GITHUB_PLUGIN=ON \
|
|
||||||
../
|
|
||||||
else
|
else
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue