Adding Classes Plugin and PluginInfo
[python-purple] / setup.py
index 122bb5a..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
@@ -14,17 +15,17 @@ ldflags = Popen(['pkg-config', '--libs', 'purple'], stdout=PIPE).communicate()[0
 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=['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)])