updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / ocroswig / setup.py.patch
blob45ee442a028108ddc3263ab08eb200ae2ecb8e8b
1 --- old/setup.py 2010-10-26 22:39:38.642927592 +0200
2 +++ new/setup.py 2010-10-26 22:46:34.309594258 +0200
3 @@ -1,23 +1,27 @@
4 -#!/usr/bin/env python
5 +#!/usr/bin/env python2
7 """
8 setup.py file for SWIG example
9 """
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(),
25 sources=['iulib.i'])
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',