4 import subprocess
as SUB
6 import distutils
.core
as DC
9 MS
.pkg_config('catacomb', '2.1.1')
10 MS
.pkg_config('mLib', '2.0.4')
12 MS
.generate('algorithms.h')
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
))
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'],