chiark / gitweb /
debian/copyright, .mailmap: Convert to machine-readable format.
[mLib-python] / setup.py
CommitLineData
a510e264
MW
1#! /usr/bin/python
2
3import distutils.core as DC
4import Pyrex.Distutils as PXD
5import mdwsetup as MS
6
a510e264
MW
7MS.pkg_config('mLib', '2.1.0')
8
a510e264
MW
9mLib = DC.Extension('mLib', ['mLib.pyx', 'atom-base.c', 'array.c'],
10 ##extra_compile_args = ['-O0'],
11 include_dirs = MS.uniquify(MS.INCLUDEDIRS),
12 library_dirs = MS.uniquify(MS.LIBDIRS),
13 libraries = MS.uniquify(MS.LIBS))
14
976d8e49 15MS.setup(name = 'mLib-python',
a510e264
MW
16 description = 'Python interface to mLib utilities library',
17 author = 'Straylight/Edgeware',
18 author_email = 'mdw@distorted.org.uk',
19 license = 'GNU General Public License',
20 ext_modules = [mLib],
976d8e49
MW
21 genfiles = [MS.Derive('base64.pyx', 'codec.pyx.in',
22 {'CLASS': 'Base64', 'PREFIX': 'base64'}),
23 MS.Derive('base32.pyx', 'codec.pyx.in',
24 {'CLASS': 'Base32', 'PREFIX': 'base32'}),
25 MS.Derive('hex.pyx', 'codec.pyx.in',
26 {'CLASS': 'Hex', 'PREFIX': 'hex'})],
27 cleanfiles = ['mLib.c'],
a510e264 28 cmdclass = { 'build_ext': PXD.build_ext })