[SCM] Debian packaging for openturns www.openturns.org branch, debian, updated. debian/1.1-3

Denis Barbier bouzim at gmail.com
Wed Jun 19 19:11:31 UTC 2013


The following commit has been merged in the debian branch:
commit ae5d0d2a21fdcc4d3526835dec385c2824bceb95
Author: Denis Barbier <bouzim at gmail.com>
Date:   Mon May 27 01:16:49 2013 +0200

    Adjust Python detection so that it works with multiarch and non-multiarch paths

diff --git a/debian/rules b/debian/rules
index 4533f9c..2347965 100755
--- a/debian/rules
+++ b/debian/rules
@@ -70,8 +70,9 @@ override_dh_auto_configure: debian/tmp/usr/lib/R/site-library/rot
             -DOPENTURNS_SYSTEM_INSTALL:BOOL=ON \
             -DINSTALL_DESTDIR:PATH=$(CURDIR)/debian/tmp \
             -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python \
-            -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python$(PYVER) \
-            -DPYTHON_LIBRARY:PATH=/usr/lib/python$(PYVERS)/config/libpython$(PYVER).so
+            -DPYTHON_INCLUDE_DIR:PATH=$$(python$(PYVER)-config --includes | sed -e 's/ .*//' -e 's/^-I//') \
+            -DPYTHON_INCLUDE_DIR2:PATH=$$(python$(PYVER)-config --includes | sed -e 's/ .*//' -e 's/^-I//') \
+            -DPYTHON_LIBRARY:PATH=$$(python$(PYVER)-config --ldflags | sed -e 's/ .*//' -e 's/^-L//')/libpython$(PYVER).so
 
 ifneq (,$(findstring $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel))
 override_dh_auto_build:

-- 
Debian packaging for openturns www.openturns.org



More information about the debian-science-commits mailing list