Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pycrypto/files: pycrypto-2.1.0-gmp.patch
Date: Mon, 02 Nov 2009 23:32:16
Message-Id: E1N56Nd-0003W7-Bf@stork.gentoo.org
1 arfrever 09/11/02 23:32:09
2
3 Added: pycrypto-2.1.0-gmp.patch
4 Log:
5 Version bump.
6 (Portage version: 14774-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-python/pycrypto/files/pycrypto-2.1.0-gmp.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycrypto/files/pycrypto-2.1.0-gmp.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycrypto/files/pycrypto-2.1.0-gmp.patch?rev=1.1&content-type=text/plain
13
14 Index: pycrypto-2.1.0-gmp.patch
15 ===================================================================
16 --- setup.py
17 +++ setup.py
18 @@ -151,11 +151,12 @@
19 if self.compiler.compiler_type == 'msvc':
20 self.compiler.include_dirs.insert(0, "src/inc-msvc/")
21
22 - # Detect libgmp and don't build _fastmath if it is missing.
23 - lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
24 - if not (self.compiler.find_library_file(lib_dirs, 'gmp')):
25 - print >>sys.stderr, "warning: GMP library not found; Not building Crypto.PublicKey._fastmath."
26 - self.__remove_extensions(["Crypto.PublicKey._fastmath"])
27 + if os.environ.get("USE_GMP", "1") == "1":
28 + # Detect libgmp and don't build _fastmath if it is missing.
29 + lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
30 + if not (self.compiler.find_library_file(lib_dirs, 'gmp')):
31 + print >>sys.stderr, "error: GMP library not found."
32 + sys.exit(1)
33
34 def __remove_extensions(self, names):
35 """Remove the specified extension from the list of extensions to build"""