| 1 | #! /usr/bin/python |
| 2 | |
| 3 | import distutils.core as DC |
| 4 | import mdwsetup as MS |
| 5 | |
| 6 | MS.pkg_config('catacomb', '2.5.99~') |
| 7 | MS.pkg_config('mLib', '2.4.99~') |
| 8 | |
| 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', |
| 14 | 'pyke/pyke.c', 'pyke/pyke-mLib.c', |
| 15 | 'pyke/mapping.c', 'pyke/mapping-mLib.c'], |
| 16 | ##extra_compile_args = ['-O0'], |
| 17 | include_dirs = MS.uniquify(MS.INCLUDEDIRS), |
| 18 | library_dirs = MS.uniquify(MS.LIBDIRS), |
| 19 | libraries = MS.uniquify(MS.LIBS)) |
| 20 | |
| 21 | MS.setup(name = 'catacomb-python', |
| 22 | description = 'Interface to Catacomb cryptographic library', |
| 23 | url = 'https://git.distorted.org.uk/~mdw/catacomb-python/', |
| 24 | author = 'Straylight/Edgeware', |
| 25 | author_email = 'mdw@distorted.org.uk', |
| 26 | license = 'GNU General Public License', |
| 27 | packages = ['catacomb'], |
| 28 | scripts = ['pock', 'pwsafe'], |
| 29 | data_files = [('share/man/man1', ['pock.1', 'pwsafe.1'])], |
| 30 | genfiles = [MS.Generate('algorithms.h')], |
| 31 | unittest_dir = "t", |
| 32 | unittests = ["t-misc", "t-algorithms", "t-bytes", "t-buffer", |
| 33 | "t-convert", "t-ec", "t-field", "t-group", "t-key", |
| 34 | "t-mp", "t-passphrase", "t-pgen", "t-pubkey", |
| 35 | "t-rand", "t-rat", "t-share"], |
| 36 | ext_modules = [cat]) |