from distutils.core import setup, Extension

detectionC_mod = Extension('detectionC',
        sources = ['detectionC.cpp'])

setup(name = "detectionC",
        version = "1.0",
        description = "OpenCV Video Face Detection Module",
        ext_modules = [detectionC_mod],
)

@@ -36,16 +36,92 @@
 xtension
+%0Aimport subprocess%0Aimport os%0A%0Aos.environ%5B%22CC%22%5D=%22gcc%22%0Aos.environ%5B%22CXX%22%5D=%22g++%22
 %0A%0Adetect
@@ -155,16 +155,35 @@
 tionC',%0A
+                   
         
@@ -210,17 +210,425 @@
 nC.cpp'%5D
-)
+,%0A                           include_dirs = %5B'/usr/local/include'%5D,%0A                           library_dirs = %5B'/usr/local/lib'%5D)%0A%0AdetectionC_mod.extra_compile_args = %5B'-ggdb',%0A                                     subprocess.check_output(%5B'pkg-config','--cflags','opencv'%5D),%0A                                     subprocess.check_output(%5B'pkg-config','--libs','opencv'%5D),%0A                                    %5D;
 %0A%0Asetup(
@@ -654,18 +654,16 @@
 ,%0A      
-  
 version 
@@ -671,18 +671,16 @@
  %221.0%22,%0A
-  
       de
@@ -729,18 +729,16 @@
 odule%22,%0A
-  
       ex

Update setup.py