[Python-modules-commits] r18713 - in packages/python-crypto/trunk/debian (3 files)
sramacher-guest at users.alioth.debian.org
sramacher-guest at users.alioth.debian.org
Sat Sep 24 12:43:14 UTC 2011
Date: Saturday, September 24, 2011 @ 12:43:12
Author: sramacher-guest
Revision: 18713
Add patch setup-dont-check-gmp.patch to build _fastmath.so even with multiarch-ified versions of libgmp.
Added:
packages/python-crypto/trunk/debian/patches/setup-dont-check-gmp.patch
Modified:
packages/python-crypto/trunk/debian/changelog
packages/python-crypto/trunk/debian/patches/series
Modified: packages/python-crypto/trunk/debian/changelog
===================================================================
--- packages/python-crypto/trunk/debian/changelog 2011-09-24 09:51:38 UTC (rev 18712)
+++ packages/python-crypto/trunk/debian/changelog 2011-09-24 12:43:12 UTC (rev 18713)
@@ -1,3 +1,10 @@
+python-crypto (2.3-3) UNRELEASED; urgency=low
+
+ * Add patch setup-dont-check-gmp.patch to build _fastmath.so even with
+ multiarch-ified versions of libgmp.
+
+ -- Sebastian Ramacher <s.ramacher at gmx.at> Sat, 24 Sep 2011 14:25:59 +0200
+
python-crypto (2.3-2) unstable; urgency=low
* Add Vcs-* entries.
Modified: packages/python-crypto/trunk/debian/patches/series
===================================================================
--- packages/python-crypto/trunk/debian/patches/series 2011-09-24 09:51:38 UTC (rev 18712)
+++ packages/python-crypto/trunk/debian/patches/series 2011-09-24 12:43:12 UTC (rev 18713)
@@ -1,3 +1,4 @@
no-usr-local.patch
epydoc-exclude-introspect.patch
fix-RSA-generate-exception.patch
+setup-dont-check-gmp.patch
Added: packages/python-crypto/trunk/debian/patches/setup-dont-check-gmp.patch
===================================================================
--- packages/python-crypto/trunk/debian/patches/setup-dont-check-gmp.patch (rev 0)
+++ packages/python-crypto/trunk/debian/patches/setup-dont-check-gmp.patch 2011-09-24 12:43:12 UTC (rev 18713)
@@ -0,0 +1,23 @@
+Description: Don't check if gmp is available.
+ Since gmp has been multiarch-ified recently libgmp.so is to be found in
+ /usr/lib/<triplet>. But setup.py only checks /lib and /usr/lib.
+Origin: Sebastian Ramacher <s.ramacher at gmx.at>
+Last-Update: 2011-09-24
+
+diff --git a/setup.py b/setup.py
+index 37aedef..88c87e9 100644
+--- a/setup.py
++++ b/setup.py
+@@ -156,12 +156,6 @@ class PCTBuildExt (build_ext):
+ if self.compiler.compiler_type == 'msvc':
+ self.compiler.include_dirs.insert(0, "src/inc-msvc/")
+
+- # Detect libgmp and don't build _fastmath if it is missing.
+- lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
+- if not (self.compiler.find_library_file(lib_dirs, 'gmp')):
+- print >>sys.stderr, "warning: GMP library not found; Not building Crypto.PublicKey._fastmath."
+- self.__remove_extensions(["Crypto.PublicKey._fastmath"])
+-
+ def __remove_extensions(self, names):
+ """Remove the specified extension from the list of extensions to build"""
+ i = 0
Property changes on: packages/python-crypto/trunk/debian/patches/setup-dont-check-gmp.patch
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the Python-modules-commits
mailing list