add PyObject refcount debugging code
[enigma2.git] / lib / python / Makefile.am
index 1cc01544a9d9cee4a0494e5215e5ca8ea947a838..e0d5f0cd7656bc6d3c643f46fb4759afbbc6c2e3 100644 (file)
@@ -11,6 +11,9 @@ libenigma_python_a_SOURCES = \
 
 enigma_python_wrap.cxx: enigma_python.i
        swig -I$(top_srcdir)/ -c++ -python enigma_python.i
+       echo "#include <lib/python/python.h>" > bla.cxx
+       cat enigma_python_wrap.cxx >> bla.cxx
+       mv bla.cxx enigma_python_wrap.cxx
 
 installdir = $(LIBDIR)/enigma2/python