Commit | Line | Data |
---|---|---|
d7ab1bab | 1 | #! /usr/bin/python |
2 | ||
2286c788 MW |
3 | import distutils.core as DC |
4 | import mdwsetup as MS | |
5 | ||
d74cc4dc | 6 | MS.pkg_config('catacomb', '2.5.0') |
0f8bc8a2 | 7 | MS.pkg_config('mLib', '2.2.2.1') |
2286c788 | 8 | |
2286c788 MW |
9 | cat = 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 | 19 | MS.setup(name = 'catacomb-python', |
2286c788 | 20 | description = 'Interface to Catacomb cryptographic library', |
659a6927 | 21 | url = 'https://git.distorted.org.uk/~mdw/catacomb-python/', |
2286c788 MW |
22 | author = 'Straylight/Edgeware', |
23 | author_email = 'mdw@distorted.org.uk', | |
24 | license = 'GNU General Public License', | |
25 | packages = ['catacomb'], | |
7de4d3fe MW |
26 | scripts = ['pock', 'pwsafe'], |
27 | data_files = [('share/man/man1', ['pock.1', 'pwsafe.1'])], | |
e9fc59fa | 28 | genfiles = [MS.Generate('algorithms.h')], |
553d59fe MW |
29 | unittest_dir = "t", |
30 | unittests = ["t-misc", "t-algorithms", "t-bytes", "t-buffer", | |
31 | "t-convert", "t-ec", "t-field", "t-group", "t-key", | |
32 | "t-mp", "t-passphrase", "t-pgen", "t-pubkey", | |
33 | "t-rand", "t-rat", "t-share"], | |
2286c788 | 34 | ext_modules = [cat]) |