Author: tack
Date: Fri Dec 29 19:25:35 2006
New Revision: 2308

Modified:
   trunk/base/setup.py
   trunk/base/src/distribution/core.py

Log:
Check that Python.h exists if need to compile an extension module (hopefully
solves a FAQ); indicate that lack of inotify in glibc is not an error
(hopefully solves another FAQ).


Modified: trunk/base/setup.py
==============================================================================
--- trunk/base/setup.py (original)
+++ trunk/base/setup.py Fri Dec 29 19:25:35 2006
@@ -52,7 +52,7 @@
     if not inotify_ext.check_cc(["<sys/syscall.h>"], "syscall(0);"):
         print "inotify not enabled: doesn't look like a Linux system."
     else:
-        print "inotify not supported in glibc; using built-in support instead."
+        print "inotify not supported in glibc; no problem, using built-in 
support instead."
         inotify_ext.config("#define USE_FALLBACK")
         extensions.append(inotify_ext)
 

Modified: trunk/base/src/distribution/core.py
==============================================================================
--- trunk/base/src/distribution/core.py (original)
+++ trunk/base/src/distribution/core.py Fri Dec 29 19:25:35 2006
@@ -36,6 +36,7 @@
 import re
 import tempfile
 import distutils.core
+import distutils.sysconfig
 
 # internal imports
 from version import Version
@@ -443,6 +444,12 @@
         for ext in kaa_ext_modules:
             ext_modules.append(ext.convert())
         kwargs['ext_modules'] = ext_modules
+        # We need to compile an extension, so first do a naive check to ensure
+        # Python headers are available.
+        if not 
os.path.exists(os.path.join(distutils.sysconfig.get_python_inc(), 'Python.h')):
+            print "- Python headers not found; please install python 
development package."
+            sys.exit(1)
+
     else:
         # No extensions, but trick distutils into thinking we do have, so
         # the module gets installed in the platform-specific libdir.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to