Author: dmeyer
Date: Sun May 20 20:04:27 2007
New Revision: 2675

Modified:
   trunk/base/setup.py

Log:
make setup work without Python.h

Modified: trunk/base/setup.py
==============================================================================
--- trunk/base/setup.py (original)
+++ trunk/base/setup.py Sun May 20 20:04:27 2007
@@ -28,6 +28,9 @@
 
 # python imports
 import sys
+import os
+import time
+import distutils.sysconfig
 
 # We require python 2.4 or later, so complain if that isn't satisfied.
 if sys.version.split()[0] < '2.4':
@@ -65,6 +68,14 @@
     print "inotify supported by glibc; good."
     extensions.append(inotify_ext)
 
+if not os.path.exists(os.path.join(distutils.sysconfig.get_python_inc(), 
'Python.h')):
+    print 
"---------------------------------------------------------------------"
+    print "Python headers not found; please install python development 
package."
+    print "kaa.db and inotify support will be unavailable"
+    print 
"---------------------------------------------------------------------"
+    time.sleep(2)
+    extensions = []
+    
 # call setup
 setup(
     module       = 'base',

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to