retitle 300372 gnue-forms: FTBFS: wxPython check not possible without working 
DISPLAY
tag 300372 patch
thanks

Hi!

The attached patch works for me.

bye,
  Roland
-- 
--- orig/gnue-forms-0.5.11/setup.py	2005-01-04 08:37:20.000000000 +0100
+++ gnue-forms-0.5.11/setup.py	2005-03-19 11:17:53.949696928 +0100
@@ -176,23 +176,8 @@
 
     # wxPython
     print "checking wxPython library: ",
-    if (os.environ.has_key('DISPLAY') and len(os.environ["DISPLAY"])) or \
-       os.name!='posix':
-      try:
-        from wxPython import wx
-        if wx.__version__[0:2]=='2.':
-          print "ok (%s)" % wx.__version__
-          UIOK = 1
-          # WORKAROUND:
-          # return now because subsequent import of pygtk will segfault.
-          return
-        else:
-          print "Version 2.3 or greater needed"
-      except ImportError:
-        pass
-    else:
-      print "check not possible, X11 not working, assuming wxPython is there"
-      UIOK = 1
+    print "assuming that wxPython works on Debian"
+    UIOK = 1
 
     # pyGTK 2.0
     print "checking pyGTK 2.0 library: ",

Reply via email to