Commit | Line | Data |
---|---|---|
d7ab1bab | 1 | #! /usr/bin/python |
2 | ||
2286c788 MW |
3 | import os as OS |
4 | import subprocess as SUB | |
5 | ||
6 | import distutils.core as DC | |
7 | import mdwsetup as MS | |
8 | ||
9 | MS.pkg_config('catacomb', '2.1.1') | |
10 | MS.pkg_config('mLib', '2.0.4') | |
11 | ||
12 | MS.generate('algorithms.h') | |
13 | ||
14 | cat = DC.Extension('catacomb._base', | |
15 | ['catacomb.c', 'bytestring.c', 'buffer.c', | |
16 | 'rand.c', 'algorithms.c', 'pubkey.c', 'pgen.c', | |
17 | 'mp.c', 'field.c', 'ec.c', 'group.c', 'passphrase.c', | |
18 | 'share.c', 'key.c', 'util.c'], | |
19 | ##extra_compile_args = ['-O0'], | |
20 | include_dirs = MS.uniquify(MS.INCLUDEDIRS), | |
21 | library_dirs = MS.uniquify(MS.LIBDIRS), | |
22 | libraries = MS.uniquify(MS.LIBS)) | |
23 | ||
24 | DC.setup(name = 'catacomb-python', | |
25 | version = MS.auto_version(), | |
26 | description = 'Interface to Catacomb cryptographic library', | |
27 | url = 'http://www.distorted.org.uk/~mdw/Catacomb-2.1.0', | |
28 | author = 'Straylight/Edgeware', | |
29 | author_email = 'mdw@distorted.org.uk', | |
30 | license = 'GNU General Public License', | |
31 | packages = ['catacomb'], | |
32 | scripts = ['pwsafe'], | |
33 | ext_modules = [cat]) |