diff options
author | 2006-02-02 01:24:11 +0000 | |
---|---|---|
committer | 2006-02-02 01:24:11 +0000 | |
commit | b0bd90eba4c9c2da84b26063fa0e06b64651160b (patch) | |
tree | 00a19390192deb0fb47821488cfda2f85a38842a /dev-python/pycrypto/files | |
parent | Version bump (diff) | |
download | historical-b0bd90eba4c9c2da84b26063fa0e06b64651160b.tar.gz historical-b0bd90eba4c9c2da84b26063fa0e06b64651160b.tar.bz2 historical-b0bd90eba4c9c2da84b26063fa0e06b64651160b.zip |
Make gmp optional.
Package-Manager: portage-2.1_pre4-r1
Diffstat (limited to 'dev-python/pycrypto/files')
-rw-r--r-- | dev-python/pycrypto/files/pycrypto-2.0.1-gmp.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/pycrypto/files/pycrypto-2.0.1-gmp.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-gmp.patch new file mode 100644 index 000000000000..7580c951bfe8 --- /dev/null +++ b/dev-python/pycrypto/files/pycrypto-2.0.1-gmp.patch @@ -0,0 +1,16 @@ +Give control over gmp support + +--- pycrypto/setup.py ++++ pycrypto/setup.py +@@ -116,10 +116,8 @@ + build_ext.build_extensions(self) + + def detect_modules (self): +- lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib'] +- inc_dirs = self.compiler.include_dirs + ['/usr/include'] + exts = [] +- if (self.compiler.find_library_file(lib_dirs, 'gmp')): ++ if os.environ.has_key("USE_GMP") and os.environ["USE_GMP"] == "1": + exts.append(Extension("Crypto.PublicKey._fastmath", + include_dirs=['src/'], + libraries=['gmp'], |