Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(24442)

Side by Side Diff: setup.py

Issue 16113: Add SHA-3 (Keccak) support
Patch Set: Created 6 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« Modules/_sha3/sha3module.c ('K') | « Modules/_sha3/sha3module.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Autodetecting setup.py script for building the Python extensions 1 # Autodetecting setup.py script for building the Python extensions
2 # 2 #
3 3
4 import sys, os, imp, re, optparse 4 import sys, os, imp, re, optparse
5 from glob import glob 5 from glob import glob
6 import sysconfig 6 import sysconfig
7 7
8 from distutils import log 8 from distutils import log
9 from distutils import text_file 9 from distutils import text_file
10 from distutils.errors import * 10 from distutils.errors import *
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 # It's harmless and the object code is tiny (40-50 KB per module, 830 # It's harmless and the object code is tiny (40-50 KB per module,
831 # only loaded when actually used). 831 # only loaded when actually used).
832 exts.append( Extension('_sha256', ['sha256module.c'], 832 exts.append( Extension('_sha256', ['sha256module.c'],
833 depends=['hashlib.h']) ) 833 depends=['hashlib.h']) )
834 exts.append( Extension('_sha512', ['sha512module.c'], 834 exts.append( Extension('_sha512', ['sha512module.c'],
835 depends=['hashlib.h']) ) 835 depends=['hashlib.h']) )
836 exts.append( Extension('_md5', ['md5module.c'], 836 exts.append( Extension('_md5', ['md5module.c'],
837 depends=['hashlib.h']) ) 837 depends=['hashlib.h']) )
838 exts.append( Extension('_sha1', ['sha1module.c'], 838 exts.append( Extension('_sha1', ['sha1module.c'],
839 depends=['hashlib.h']) ) 839 depends=['hashlib.h']) )
840
841 # SHA-3 (Keccak) module
842 sha3_depends = []
gregory.p.smith 2012/10/05 08:29:56 what about hashlib.h? sha3module.c #include's it.
christian.heimes 2012/10/05 11:16:27 Thx, I've already taken care of hashlib.h in hg. T
843 sha3_depends.extend(glob("Modules/_sha3/keccak/*.c"))
844 sha3_depends.extend(glob("Modules/_sha3/keccak/*.h"))
845 sha3_depends.extend(glob("Modules/_sha3/keccak/*.macros"))
846 exts.append(Extension("_sha3", ["Modules/_sha3/sha3module.c"],
847 depends=sha3_depends))
840 848
841 # Modules that provide persistent dictionary-like semantics. You will 849 # Modules that provide persistent dictionary-like semantics. You will
842 # probably want to arrange for at least one of them to be available on 850 # probably want to arrange for at least one of them to be available on
843 # your machine, though none are defined by default because of library 851 # your machine, though none are defined by default because of library
844 # dependencies. The Python module dbm/__init__.py provides an 852 # dependencies. The Python module dbm/__init__.py provides an
845 # implementation independent wrapper for these; dbm/dumb.py provides 853 # implementation independent wrapper for these; dbm/dumb.py provides
846 # similar functionality (but slower of course) implemented in Python. 854 # similar functionality (but slower of course) implemented in Python.
847 855
848 # Sleepycat^WOracle Berkeley DB interface. 856 # Sleepycat^WOracle Berkeley DB interface.
849 # http://www.oracle.com/database/berkeley-db/db/index.html 857 # http://www.oracle.com/database/berkeley-db/db/index.html
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2146 # If you change the scripts installed here, you also need to 2154 # If you change the scripts installed here, you also need to
2147 # check the PyBuildScripts command above, and change the links 2155 # check the PyBuildScripts command above, and change the links
2148 # created by the bininstall target in Makefile.pre.in 2156 # created by the bininstall target in Makefile.pre.in
2149 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3", 2157 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
2150 "Tools/scripts/2to3", "Tools/scripts/pyvenv"] 2158 "Tools/scripts/2to3", "Tools/scripts/pyvenv"]
2151 ) 2159 )
2152 2160
2153 # --install-platlib 2161 # --install-platlib
2154 if __name__ == '__main__': 2162 if __name__ == '__main__':
2155 main() 2163 main()
OLDNEW
« Modules/_sha3/sha3module.c ('K') | « Modules/_sha3/sha3module.c ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+