Add get/set proxyinfo methods to Account class
[python-purple] / setup.py
index 128df44..bf58b71 100755 (executable)
--- 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)])