[theano] 02/23: deb/rules: add empty config.cxx to THEANO_FLAGS on some archs

Daniel Stender stender at moszumanska.debian.org
Tue Jul 12 10:54:31 UTC 2016


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

stender pushed a commit to branch master
in repository theano.

commit 49de3d3ebd9fb90fc3cffc722fb3fa5216af060c
Author: Daniel Stender <stender at debian.org>
Date:   Sun Jul 10 21:11:14 2016 +0200

    deb/rules: add empty config.cxx to THEANO_FLAGS on some archs
---
 debian/changelog | 5 ++++-
 debian/rules     | 7 ++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a2de969..7400e0b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,11 @@ theano (0.7-6) UNRELEASED; urgency=medium
 
   * deb/control:
     + use virtual libblas.so for the deps of binary packages.
+  * deb/rules:
+    + add empty config.cxx to THEANO_FLAGS on some archs (which are not
+      recognizing Theano's default flags "-m32" and "-m64").
 
- -- Daniel Stender <stender at debian.org>  Sun, 10 Jul 2016 16:58:39 +0200
+ -- Daniel Stender <stender at debian.org>  Sun, 10 Jul 2016 21:07:56 +0200
 
 theano (0.7-5) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 9504d9a..5cd61bd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,12 @@ export PYBUILD_NAME=theano
 
 export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/{package}
 
-export THEANO_FLAGS=base_compiledir='.pybuild',device=cpu,mode=FAST_COMPILE
+# g++ flags "-m32" and "-m64" are not recognized on this archs, let fall back to Python
+ifneq (,$(filter arm64 mips64el mips mipsel hppa,$(DEB_BUILD_ARCH)))
+   export THEANO_FLAGS=base_compiledir='.pybuild',device=cpu,mode=FAST_COMPILE,cxx=''
+else
+   export THEANO_FLAGS=base_compiledir='.pybuild',device=cpu,mode=FAST_COMPILE
+endif
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild

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



More information about the debian-science-commits mailing list