3 import distutils.core as DC
4 import Pyrex.Distutils as PXD
7 MS.pkg_config('catacomb', '2.1.0')
8 MS.pkg_config('mLib', '2.1.0')
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'})
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))
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',
30 cmdclass = { 'build_ext': PXD.build_ext })