Behdad Esfahbod | 5035530 | 2010-05-21 10:33:23 +0100 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | from distutils.core import setup |
| 4 | from glob import glob |
| 5 | from Pyrex.Distutils.extension import Extension |
| 6 | from Pyrex.Distutils import build_ext |
| 7 | |
| 8 | setup(name='harfbuzz', |
| 9 | version='0.0.1', |
| 10 | description='Harfbuzz compatibility layer', |
| 11 | long_description='Harfbuzz python integration modules and supporting scripts', |
| 12 | maintainer='Martin Hosken', |
| 13 | maintainer_email='martin_hosken@sil.org', |
| 14 | packages=['harfbuzz'], |
| 15 | ext_modules = [ |
Martin Hosken | 56bef56 | 2010-05-27 10:09:04 +0100 | [diff] [blame] | 16 | Extension("harfbuzz", ["lib/harfbuzz.pyx"], libraries=["harfbuzz"], library_dirs=["../../src/.libs"], include_dirs=["/usr/include/freetype2", "../../src"]), |
| 17 | Extension("fontconfig", ["lib/fontconfig.pyx"], libraries=["fontconfig"]) |
Behdad Esfahbod | 5035530 | 2010-05-21 10:33:23 +0100 | [diff] [blame] | 18 | ], |
| 19 | cmdclass = {'build_ext' : build_ext}, |
| 20 | scripts = glob('scripts/*'), |
| 21 | license = 'LGPL', |
| 22 | platforms = ['Linux', 'Win32', 'Mac OS X'], |
| 23 | package_dir = {'harfbuzz' : 'lib'} |
| 24 | ) |
| 25 | |