summaryrefslogtreecommitdiff
path: root/setup.py
blob: c13157254844d99666a0648499a8d510f29b870b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import subprocess, re
from distutils.core import setup, Extension

freetype_config = subprocess.Popen('freetype-config --cflags --libs', shell = True, stdout = subprocess.PIPE).stdout.read()

setup(
	name = 'pykfx',
	version = '0.1',
	description = 'pykfx is a collection of classes for parsing ASS-scripts.',
	author = 'Jon Bergli Heier',
	author_email = 'jonheier@start.no',
	packages = ['pykfx'],
	ext_modules = [Extension('pykfx.fscalc', ['fscalc.cpp', 'wrapper.cpp'],
		include_dirs = re.findall('-I[^\/\w]*([\w\/]+)', freetype_config),
		libraries = ['boost_python', 'fontconfig'] + re.findall('-l\W*(\w+)', freetype_config),
		   )],
)