This patch should fix a few errors importing libaries. Because
pyOpenSSL seems to be named OpenSSL on many systems (at least my
Ubuntu and Gentoo systems), and wx can import an old version on
systems with more than one version installed.



{
hunk ./requirements.py 52
+       import wxversion
+       wxversion.ensureMinimal("2.6")
+except ImportError:
+       pass
+try:
hunk ./requirements.py 101
-       print e
-
-       reason = "Installing pyOpenSSL allows the client to check if
the host you are connecting to has a valid certificate."
-       if system == "debian-based":
-               recommended.append(("python-pyopenssl", reason))
-       else:
-               recommended.append(("pyOpenSSL", reason))
+       try:
+               import OpenSSL as pyOpenSSL
+       except:
+               print e
+^I$
+               reason = "Installing pyOpenSSL allows the client to
check if the host you are connecting to has a valid certificate."
+               if system == "debian-based":
+                       recommended.append(("python-pyopenssl", reason))
+               else:
+                       recommended.append(("pyOpenSSL", reason))
}
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to