]>
Commit | Line | Data |
---|---|---|
1 | --- pycrypto/setup.py | |
2 | +++ pycrypto/setup.py | |
3 | @@ -94,13 +94,6 @@ | |
4 | Extension("Crypto.Cipher.DES3", | |
5 | include_dirs=['src/'], | |
6 | sources=["src/DES3.c"]), | |
7 | - Extension("Crypto.Cipher.IDEA", | |
8 | - include_dirs=['src/'], | |
9 | - sources=["src/IDEA.c"], | |
10 | - libraries=HTONS_LIBS), | |
11 | - Extension("Crypto.Cipher.RC5", | |
12 | - include_dirs=['src/'], | |
13 | - sources=["src/RC5.c"]), | |
14 | ||
15 | # Stream ciphers | |
16 | Extension("Crypto.Cipher.ARC4", | |
17 | @@ -111,6 +104,17 @@ | |
18 | sources=["src/XOR.c"]), | |
19 | ] | |
20 | ||
21 | + if not os.environ.has_key("BINDIST") or os.environ["BINDIST"]!="1": | |
22 | + self.extensions += [ | |
23 | + Extension("Crypto.Cipher.IDEA", | |
24 | + include_dirs=['src/'], | |
25 | + sources=["src/IDEA.c"], | |
26 | + libraries=HTONS_LIBS), | |
27 | + Extension("Crypto.Cipher.RC5", | |
28 | + include_dirs=['src/'], | |
29 | + sources=["src/RC5.c"]), | |
30 | + ] | |
31 | + | |
32 | # Detect which modules should be compiled | |
33 | self.detect_modules() | |
34 | build_ext.build_extensions(self) | |
35 | --- pycrypto/Cipher/__init__.py | |
36 | +++ pycrypto/Cipher/__init__.py | |
37 | @@ -24,7 +24,7 @@ | |
38 | """ | |
39 | ||
40 | __all__ = ['AES', 'ARC2', 'ARC4', | |
41 | - 'Blowfish', 'CAST', 'DES', 'DES3', 'IDEA', 'RC5', | |
42 | + 'Blowfish', 'CAST', 'DES', 'DES3', | |
43 | 'XOR' | |
44 | ] | |
45 |