Author: dmeyer
Date: Fri Mar 30 15:03:33 2007
New Revision: 2605

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

Log:
add warning when xml.py is still there

Modified: trunk/base/src/distribution/core.py
==============================================================================
--- trunk/base/src/distribution/core.py (original)
+++ trunk/base/src/distribution/core.py Fri Mar 30 15:03:33 2007
@@ -41,8 +41,17 @@
 
 # internal imports
 from version import Version
-from build_py import build_py
-from svn2log import svn2log
+try:
+    from build_py import build_py
+    from svn2log import svn2log
+except ImportError, e:
+    # Small hack before the next release. FIXME: this should be
+    # removed for future versions again.
+    print 'Error: detected files from previous kaa.base version!'
+    print 'Please reinstall kaa by deleting all \'build\' subdirs'
+    print 'for all kaa source modules and delete the kaa directory'
+    print 'in the site-package directory'
+    raise e
 
 __all__ = ['compile', 'check_library', 'get_library', 'setup', 'ConfigFile',
            'Extension', 'Library']

Modified: trunk/base/src/xmlutils.py
==============================================================================
--- trunk/base/src/xmlutils.py  (original)
+++ trunk/base/src/xmlutils.py  Fri Mar 30 15:03:33 2007
@@ -31,7 +31,16 @@
 __all__ = [ 'SaxTreeHandler' ]
 
 # python xml import
-import xml.sax
+try:
+    import xml.sax
+except ImportError, e:
+    # Small hack before the next release. FIXME: this should be
+    # removed for future versions again.
+    print 'Error: detected files from previous kaa.base version!'
+    print 'Please reinstall kaa by deleting all \'build\' subdirs'
+    print 'for all kaa source modules and delete the kaa directory'
+    print 'in the site-package directory'
+    raise e
 
 class SaxTreeHandler(xml.sax.ContentHandler):
     """

-------------------------------------------------------------------------
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