Mercurial > cpython-lru_cache-weakref
diff setup.py @ 79502:11c9a894680e
Issue #16113: integrade SHA-3 (Keccak) patch from http://hg.python.org/sandbox/cheimes
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Sat, 06 Oct 2012 02:23:36 +0200 |
| parents | d853354e1470 |
| children | f85c3f4d9b98 |
line wrap: on
line diff
--- a/setup.py Sat Oct 06 00:40:45 2012 +0200 +++ b/setup.py Sat Oct 06 02:23:36 2012 +0200 @@ -838,6 +838,15 @@ exts.append( Extension('_sha1', ['sha1module.c'], depends=['hashlib.h']) ) + # SHA-3 (Keccak) module + sha3_depends = ['hashlib.h'] + keccak = os.path.join(os.getcwd(), srcdir, 'Modules', '_sha3', + 'keccak') + for pattern in ('*.c', '*.h', '*.macros'): + sha3_depends.extend(glob(os.path.join(keccak, pattern))) + exts.append(Extension("_sha3", ["_sha3/sha3module.c"], + depends=sha3_depends)) + # Modules that provide persistent dictionary-like semantics. You will # probably want to arrange for at least one of them to be available on # your machine, though none are defined by default because of library
