1 --- old/setup.py 2010-10-26 22:39:38.642927592 +0200
2 +++ new/setup.py 2010-10-26 22:46:34.309594258 +0200
5 +#!/usr/bin/env python2
8 setup.py file for SWIG example
11 from distutils.core import setup, Extension
12 +from numpy.distutils.misc_util import get_numpy_include_dirs
15 baselibs = ['tiff','png','jpeg','SDL','SDL_gfx','SDL_image','m']
17 +swig_opts = ["-c++"] + ["-I" + d for d in get_numpy_include_dirs()]
19 iulib = Extension('_iulib',
20 libraries = ['iulib']+baselibs,
21 - swig_opts = ["-c++","-I/usr/local/include"],
22 - include_dirs = ["/usr/local/include"],
23 + swig_opts = swig_opts,
24 + include_dirs = get_numpy_include_dirs(),
27 ocropus = Extension('_ocropus',
28 libraries = ['ocropus','iulib']+baselibs,
29 - swig_opts = ["-c++","-I/usr/local/include"],
30 - include_dirs = ["/usr/local/include"],
31 + swig_opts = swig_opts,
32 + include_dirs = get_numpy_include_dirs(),
33 sources=['ocropus.i'])
35 setup (name = 'iulib',