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