From 91036110f94f460492b7e29dae53781580f8a5b8 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 3 Sep 2014 08:52:19 +0200 Subject: [PATCH] sigrok-cross-linux: Allow Python bindings installation. --- cross-compile/linux/sigrok-cross-linux | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cross-compile/linux/sigrok-cross-linux b/cross-compile/linux/sigrok-cross-linux index 175f301..a5ba2c6 100755 --- a/cross-compile/linux/sigrok-cross-linux +++ b/cross-compile/linux/sigrok-cross-linux @@ -33,6 +33,9 @@ PREFIX=$HOME/sr # The path where to download files to and where to build packages. BUILDDIR=./build +# The path where the libsigrok Python bindings will be installed. +PYPATH=$PREFIX/lib/python2.7/site-packages + # Edit this to enable/disable/modify parallel compiles. PARALLEL="-j 2" @@ -62,12 +65,13 @@ make install cd .. # libsigrok +mkdir -p $PYPATH $GIT_CLONE git://sigrok.org/libsigrok cd libsigrok ./autogen.sh PKG_CONFIG_PATH=$P ./configure $C make $PARALLEL -make install +PYTHONPATH=$PYPATH make install cd .. # libsigrokdecode -- 2.30.2