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

Side by Side Diff: setup.py

Issue 16113: Add SHA-3 (Keccak) support
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « 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 = ['hashlib.h']
843 keccak = os.path.join(os.getcwd(), srcdir, 'Modules', '_sha3',
844 'keccak')
845 for pattern in ('*.c', '*.h', '*.macros'):
846 sha3_depends.extend(glob(os.path.join(keccak, pattern)))
847 exts.append(Extension("_sha3", ["_sha3/sha3module.c"],
848 depends=sha3_depends))
840 849
841 # Modules that provide persistent dictionary-like semantics. You will 850 # Modules that provide persistent dictionary-like semantics. You will
842 # probably want to arrange for at least one of them to be available on 851 # 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 852 # your machine, though none are defined by default because of library
844 # dependencies. The Python module dbm/__init__.py provides an 853 # dependencies. The Python module dbm/__init__.py provides an
845 # implementation independent wrapper for these; dbm/dumb.py provides 854 # implementation independent wrapper for these; dbm/dumb.py provides
846 # similar functionality (but slower of course) implemented in Python. 855 # similar functionality (but slower of course) implemented in Python.
847 856
848 # Sleepycat^WOracle Berkeley DB interface. 857 # Sleepycat^WOracle Berkeley DB interface.
849 # http://www.oracle.com/database/berkeley-db/db/index.html 858 # 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 2155 # If you change the scripts installed here, you also need to
2147 # check the PyBuildScripts command above, and change the links 2156 # check the PyBuildScripts command above, and change the links
2148 # created by the bininstall target in Makefile.pre.in 2157 # created by the bininstall target in Makefile.pre.in
2149 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3", 2158 scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
2150 "Tools/scripts/2to3", "Tools/scripts/pyvenv"] 2159 "Tools/scripts/2to3", "Tools/scripts/pyvenv"]
2151 ) 2160 )
2152 2161
2153 # --install-platlib 2162 # --install-platlib
2154 if __name__ == '__main__': 2163 if __name__ == '__main__':
2155 main() 2164 main()
OLDNEW
« no previous file with comments | « Modules/_sha3/sha3module.c ('k') | no next file » | no next file with comments »

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