[amp] 02/03: This change should make possible to test python3.5 and python3.6.

Muammar El Khatib muammar at moszumanska.debian.org
Tue Aug 1 19:33:49 UTC 2017


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

muammar pushed a commit to branch master
in repository amp.

commit d65f1341aa713951e517f56a713756c5a31d8352
Author: Muammar El Khatib <muammarelkhatib at gmail.com>
Date:   Tue Aug 1 14:32:37 2017 -0400

    This change should make possible to test python3.5 and python3.6.
---
 debian/patches/01_Makefile.patch | 8 +++++++-
 debian/rules                     | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/patches/01_Makefile.patch b/debian/patches/01_Makefile.patch
index d0b7d3b..9cc242d 100644
--- a/debian/patches/01_Makefile.patch
+++ b/debian/patches/01_Makefile.patch
@@ -5,7 +5,13 @@ Index: amp/amp/Makefile
 ===================================================================
 --- amp.orig/amp/Makefile
 +++ amp/amp/Makefile
-@@ -8,6 +8,11 @@ python3:
+@@ -3,11 +3,16 @@ python2:
+ 	+$(MAKE) -C descriptor
+ 	f2py -c -m fmodules model.f90 descriptor/cutoffs.f90 descriptor/gaussian.f90 descriptor/zernike.f90 model/neuralnetwork.f90
+ 
+-python3:
++python3.5:
+ 	+$(MAKE) -C model
  	+$(MAKE) -C descriptor
  	f2py3 -c -m fmodules model.f90 descriptor/cutoffs.f90 descriptor/gaussian.f90 descriptor/zernike.f90 model/neuralnetwork.f90
  
diff --git a/debian/rules b/debian/rules
index 26d2104..7d667f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,7 @@ GIT = 'https://bitbucket.org/andrewpeterson/amp'
 # The full changelog version number, used for the orig.tar.gz
 VER=$(shell dpkg-parsechangelog -ldebian/changelog -SVersion | cut -d- -f1)
 
-export PYBUILD_BEFORE_TEST_python3=cp -r tests {build_dir}; cd amp; make python3; make python3.6; cp *.so *.mod {build_dir}/amp
+export PYBUILD_BEFORE_TEST_python3=cp -r tests {build_dir}; cd amp; make {interpreter}; cp *.so *.mod {build_dir}/amp
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild

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



More information about the debian-science-commits mailing list