[adios] 107/207: Add python-adios to test

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jun 12 06:04:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch master
in repository adios.

commit 6289a30dc91bd9faa5db5065562edee2baecbe82
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Mon May 19 13:46:12 2014 +0100

    Add python-adios to test
---
 debian/python-adios.install |  1 +
 debian/rules                | 11 ++++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/python-adios.install b/debian/python-adios.install
new file mode 100644
index 0000000..a3cf8d2
--- /dev/null
+++ b/debian/python-adios.install
@@ -0,0 +1 @@
+wrappers/numpy/build/adios.so	/usr/lib/python2.7/dist-packages/adios
diff --git a/debian/rules b/debian/rules
index 257b31c..42d2b05 100755
--- a/debian/rules
+++ b/debian/rules
@@ -70,10 +70,15 @@ override_dh_auto_configure:
 	echo "ADIOS_COMPILE_FLAGS:STRING=-fPIC " >> wrappers/numpy/build/CMakeCache.txt
 
 override_dh_auto_build:
-	# First do a build shared, with -fPIC
-	$(MAKE) -C src CFLAGS='-fPIC' VERBOSE=1
-	# Now build Python wrapper
+	# First do a build shared, with -fPIC, for the python lib.
+	$(MAKE) -C src CFLAGS='-fPIC' VERBOSE=1 install
+	# Need to hack the libs into the right place ..
+	mv debian/tmp/usr/lib/*/*.a debian/tmp/usr/lib
+	# Now build Python wrapper. Uses adios_config and the debian/tmp install.
 	( cd wrappers/numpy/build && PATH=$(TOP):$(PATH) cmake .. && $(MAKE) VERBOSE=1 )
+	# Clean up.
+	rm -r debian/tmp/*
+	# Now do the static build we want.
 	dh_auto_build
 	
 override_dh_auto_install:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/adios.git



More information about the debian-science-commits mailing list