]> sigrok.org Git - sigrok-util.git/commitdiff
sigrok-cross-linux: Allow Python bindings installation.
authorUwe Hermann <redacted>
Wed, 3 Sep 2014 06:52:19 +0000 (08:52 +0200)
committerUwe Hermann <redacted>
Wed, 10 Sep 2014 15:32:12 +0000 (17:32 +0200)
cross-compile/linux/sigrok-cross-linux

index 175f30166beb92cdf76817e8129a9dd56e5dc2ea..a5ba2c6baed04dfaf7754d8a7e59ee1732bb154b 100755 (executable)
@@ -33,6 +33,9 @@ PREFIX=$HOME/sr
 # The path where to download files to and where to build packages.
 BUILDDIR=./build
 
 # 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"
 
 # Edit this to enable/disable/modify parallel compiles.
 PARALLEL="-j 2"
 
@@ -62,12 +65,13 @@ make install
 cd ..
 
 # libsigrok
 cd ..
 
 # libsigrok
+mkdir -p $PYPATH
 $GIT_CLONE git://sigrok.org/libsigrok
 cd libsigrok
 ./autogen.sh
 PKG_CONFIG_PATH=$P ./configure $C
 make $PARALLEL
 $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
 cd ..
 
 # libsigrokdecode