-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
33 lines (29 loc) · 972 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from sys import platform
from setuptools import Extension, setup
sources = ['pyharfbuzz/harfbuzz.c']
libraries = ['harfbuzz', 'freetype']
if platform.startswith("linux"):
include_dirs = ['/usr/include/harfbuzz/', '/usr/include/freetype2/']
library_dirs = ['/usr/include']
elif platform == "darwin":
library_dirs = ['/usr/local/include']
include_dirs = ['/usr/local/include/harfbuzz', '/usr/local/include/freetype2']
setup(
name='pyharfbuzz',
version='0.2.2',
description='Python binding for harfbuzz an OpenType text shaping.',
author='Sepehr Hamzehlouy',
author_email='[email protected]',
license='MIT',
url='https://github.com/RevengeComing/pyharfbuzz',
packages=['pyharfbuzz'],
ext_modules=[Extension(
name='pyharfbuzz.harfbuzz',
sources=sources,
libraries=libraries,
library_dirs=library_dirs,
include_dirs=include_dirs
)
],
include_package_data=True
)