66aafc53b2e0a554ad1675ca83dd6614f6eb6e09
3 import distutils
.core
as DC
4 import Pyrex
.Distutils
as PXD
7 MS
.pkg_config('mLib', '2.1.0')
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
))
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',
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
})