Branch: master

7aa39b59 2014-08-01 10:39:32 Michele Calgaro
Fixed location of installed Python scripts. This relates to bug 1146.
M Makefile
diff --git a/Makefile b/Makefile
index f499069..f012a87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
 PREFIX = '/usr'
 DESTDIR = '/'
+PYTHON_SITELIB=$(shell python2 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
 #interfaces = 'gtk qt4'
 
 all:
 	@python setup.py build
 
 install:
-	@python setup.py install --prefix=${PREFIX} --root=${DESTDIR}
+	@python setup.py install --prefix=${PREFIX} --root=${DESTDIR} --install-lib=${PYTHON_SITELIB}
 
 uninstall:
 	@python setup.py uninstall
 
 clean:
 	rm -rf build/
-