X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=setup.py;h=bf58b718e63d159ffa6fa3d2193bd2f27ea000be;hp=128df445404d02049e593527f667a779ac6b3337;hb=96cd4db66ee4749fb6d00e74e0bc9e3101e43079;hpb=30f1e323b5bd76f5789b6251454e388cc511e2d5 diff --git a/setup.py b/setup.py index 128df44..bf58b71 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import sys import os +from glob import glob from setuptools import setup, find_packages, Extension from distutils.sysconfig import get_python_inc @@ -10,22 +11,21 @@ from subprocess import Popen, PIPE cflags = Popen(['pkg-config', '--cflags', 'purple'], stdout=PIPE).communicate()[0].split() ldflags = Popen(['pkg-config', '--libs', 'purple'], stdout=PIPE).communicate()[0].split() -print ldflags class pypurple_build_ext(build_ext): def finalize_options(self): build_ext.finalize_options(self) - self.include_dirs.insert(0, 'include') + self.include_dirs.insert(0, 'libpurple') self.pyrex_include_dirs.extend(self.include_dirs) setup( - name = 'python-pypurple', - version = '0.1', - author ='Bruno Abinader', - author_email='bruno.abinader@openbossa.org', - ext_modules=[Extension('purple', - sources=['c_purple.c','purple.pyx'], - extra_compile_args=cflags, - extra_link_args=ldflags)], - cmdclass = {'build_ext': pypurple_build_ext}, -) + name = 'python-pypurple', + version = '0.1', + author ='Bruno Abinader', + author_email='bruno.abinader@openbossa.org', + cmdclass = {'build_ext': pypurple_build_ext}, + ext_modules=[Extension('purple', + sources=['c_purple.c','purple.pyx'], + depends=glob('libpurple/*.pxd'), + extra_compile_args=cflags, + extra_link_args=ldflags)])