Build system: use new CFD's mdwsetup.py.
[mLib-python] / setup.py
1 #! /usr/bin/python
2
3 import distutils.core as DC
4 import Pyrex.Distutils as PXD
5 import mdwsetup as MS
6
7 MS.pkg_config('catacomb', '2.1.0')
8 MS.pkg_config('mLib', '2.1.0')
9
10 MS.derive('base64.pyx', 'codec.pyx.in',
11 {'CLASS': 'Base64', 'PREFIX': 'base64'})
12 MS.derive('base32.pyx', 'codec.pyx.in',
13 {'CLASS': 'Base32', 'PREFIX': 'base32'})
14 MS.derive('hex.pyx', 'codec.pyx.in',
15 {'CLASS': 'Hex', 'PREFIX': 'hex'})
16
17 mLib = DC.Extension('mLib', ['mLib.pyx', 'atom-base.c', 'array.c'],
18 ##extra_compile_args = ['-O0'],
19 include_dirs = MS.uniquify(MS.INCLUDEDIRS),
20 library_dirs = MS.uniquify(MS.LIBDIRS),
21 libraries = MS.uniquify(MS.LIBS))
22
23 DC.setup(name = 'mLib-python',
24 version = MS.auto_version(),
25 description = 'Python interface to mLib utilities library',
26 author = 'Straylight/Edgeware',
27 author_email = 'mdw@distorted.org.uk',
28 license = 'GNU General Public License',
29 ext_modules = [mLib],
30 cmdclass = { 'build_ext': PXD.build_ext })