chiark / gitweb /
MANIFEST.in: Rewrite it because it was missing things.
[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('mLib', '2.1.0')
8
9 mLib = 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
15 MS.setup(name = 'mLib-python',
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],
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'],
28          cmdclass = { 'build_ext': PXD.build_ext })