/[gentoo-alt]/trunk/prefix/dev-python/pycrypto/files/pycrypto-2.0.1-gmp.patch
Gentoo

Contents of /trunk/prefix/dev-python/pycrypto/files/pycrypto-2.0.1-gmp.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1531 - (show annotations) (download)
Tue Sep 19 20:45:53 2006 UTC (7 years, 9 months ago) by grobian
File size: 644 byte(s)
Sync with main tree


1 Give control over gmp support
2
3 --- pycrypto/setup.py
4 +++ pycrypto/setup.py
5 @@ -116,10 +116,8 @@
6 build_ext.build_extensions(self)
7
8 def detect_modules (self):
9 - lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
10 - inc_dirs = self.compiler.include_dirs + ['/usr/include']
11 exts = []
12 - if (self.compiler.find_library_file(lib_dirs, 'gmp')):
13 + if os.environ.has_key("USE_GMP") and os.environ["USE_GMP"] == "1":
14 exts.append(Extension("Crypto.PublicKey._fastmath",
15 include_dirs=['src/'],
16 libraries=['gmp'],

  ViewVC Help
Powered by ViewVC 1.1.20