[pytables] 02/02: Only use -msse2 flag on x86
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Tue Mar 18 23:44:04 UTC 2014
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pytables.
commit a4ca930aff65da8278a413d6f49f19b4c75cad08
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Tue Mar 18 23:29:17 2014 +0100
Only use -msse2 flag on x86
---
debian/changelog | 3 ++-
.../patches/0003-Only-use-msse2-flag-on-x86.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index a7dfcfa..31ad850 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,8 @@
-pytables (3.1.0-2) UNRELEASED; urgency=medium
+pytables (3.1.0-2) unstable; urgency=medium
* Improved the debian/README.source file (added a note about the
external compression libraries included in the source tree)
+ * Only use the -msse2 flag on x86 and x86_64 machines
-- Antonio Valentino <antonio.valentino at tiscali.it> Wed, 05 Mar 2014 22:51:16 +0000
diff --git a/debian/patches/0003-Only-use-msse2-flag-on-x86.patch b/debian/patches/0003-Only-use-msse2-flag-on-x86.patch
new file mode 100644
index 0000000..180c8c0
--- /dev/null
+++ b/debian/patches/0003-Only-use-msse2-flag-on-x86.patch
@@ -0,0 +1,22 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Tue, 18 Mar 2014 23:26:24 +0100
+Subject: Only use -msse2 flag on x86
+
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 6fe9c02..5562dd9 100755
+--- a/setup.py
++++ b/setup.py
+@@ -736,7 +736,8 @@ if 'BLOSC' not in optional_libs:
+ # ...and the macros for all the compressors supported
+ def_macros += [('HAVE_LZ4', 1), ('HAVE_SNAPPY', 1), ('HAVE_ZLIB', 1)]
+ # Add -msse2 flag for optimizing shuffle in include Blosc
+- if os.name == 'posix':
++ import platform
++ if os.name == 'posix' and 'x86' in platform.machine():
+ CFLAGS.append("-msse2")
+ else:
+ ADDLIBS += ['blosc']
diff --git a/debian/patches/series b/debian/patches/series
index 7e7c3c1..b42d528 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-use-dynamic-lib.patch
0002-Use-system-compression-libs.patch
+0003-Only-use-msse2-flag-on-x86.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git
More information about the debian-science-commits
mailing list