From c062ac07e6241cf32a4a5655775aa037bdb1e76e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 1 Oct 2007 00:04:47 +0200 Subject: Moved pykfx.py to pykfx/__init__.py Added self.names in Styles along with int support in __getitem__. Added setup.py. Added fscalc, an extension that calculates text sizes for a given font. Using boost.python-wrapper for fscalc. --- setup.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c131572 --- /dev/null +++ b/setup.py @@ -0,0 +1,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), + )], +) -- cgit v1.2.3