chiark / gitweb /
catacomb/__init__.py: Settle on SHAKE256 for X448 box-key generation.
[catacomb-python] / setup.py
CommitLineData
d7ab1bab 1#! /usr/bin/python
2
2286c788
MW
3import distutils.core as DC
4import mdwsetup as MS
5
204d480b 6MS.pkg_config('catacomb', '2.3.0.1+4')
2286c788
MW
7MS.pkg_config('mLib', '2.0.4')
8
2286c788
MW
9cat = DC.Extension('catacomb._base',
10 ['catacomb.c', 'bytestring.c', 'buffer.c',
11 'rand.c', 'algorithms.c', 'pubkey.c', 'pgen.c',
12 'mp.c', 'field.c', 'ec.c', 'group.c', 'passphrase.c',
13 'share.c', 'key.c', 'util.c'],
14 ##extra_compile_args = ['-O0'],
15 include_dirs = MS.uniquify(MS.INCLUDEDIRS),
16 library_dirs = MS.uniquify(MS.LIBDIRS),
17 libraries = MS.uniquify(MS.LIBS))
18
e9fc59fa 19MS.setup(name = 'catacomb-python',
2286c788
MW
20 description = 'Interface to Catacomb cryptographic library',
21 url = 'http://www.distorted.org.uk/~mdw/Catacomb-2.1.0',
22 author = 'Straylight/Edgeware',
23 author_email = 'mdw@distorted.org.uk',
24 license = 'GNU General Public License',
25 packages = ['catacomb'],
26 scripts = ['pwsafe'],
e9fc59fa 27 genfiles = [MS.Generate('algorithms.h')],
2286c788 28 ext_modules = [cat])