X-Git-Url: https://git.wh0rd.org/?p=patches.git;a=blobdiff_plain;f=pycrypto-2.0.1-bindist.patch;fp=pycrypto-2.0.1-bindist.patch;h=be1d93260bdd7748493a8eed389e98212c8a0350;hp=0000000000000000000000000000000000000000;hb=b53d1f41b32c8078c755a63c7bf0d2852263ee99;hpb=6d7b707a99652eefa9b245d8f1e0053f3583c79c diff --git a/pycrypto-2.0.1-bindist.patch b/pycrypto-2.0.1-bindist.patch new file mode 100644 index 0000000..be1d932 --- /dev/null +++ b/pycrypto-2.0.1-bindist.patch @@ -0,0 +1,45 @@ +--- pycrypto/setup.py ++++ pycrypto/setup.py +@@ -94,13 +94,6 @@ + Extension("Crypto.Cipher.DES3", + include_dirs=['src/'], + sources=["src/DES3.c"]), +- Extension("Crypto.Cipher.IDEA", +- include_dirs=['src/'], +- sources=["src/IDEA.c"], +- libraries=HTONS_LIBS), +- Extension("Crypto.Cipher.RC5", +- include_dirs=['src/'], +- sources=["src/RC5.c"]), + + # Stream ciphers + Extension("Crypto.Cipher.ARC4", +@@ -111,6 +104,17 @@ + sources=["src/XOR.c"]), + ] + ++ if not os.environ.has_key("BINDIST") or os.environ["BINDIST"]!="1": ++ self.extensions += [ ++ Extension("Crypto.Cipher.IDEA", ++ include_dirs=['src/'], ++ sources=["src/IDEA.c"], ++ libraries=HTONS_LIBS), ++ Extension("Crypto.Cipher.RC5", ++ include_dirs=['src/'], ++ sources=["src/RC5.c"]), ++ ] ++ + # Detect which modules should be compiled + self.detect_modules() + build_ext.build_extensions(self) +--- pycrypto/Cipher/__init__.py ++++ pycrypto/Cipher/__init__.py +@@ -24,7 +24,7 @@ + """ + + __all__ = ['AES', 'ARC2', 'ARC4', +- 'Blowfish', 'CAST', 'DES', 'DES3', 'IDEA', 'RC5', ++ 'Blowfish', 'CAST', 'DES', 'DES3', + 'XOR' + ] +