gamera (3.3.3-2) setup-no-import-wx.diff

Summary

 setup.py |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

    
download this patch

Patch contents

Description: don't hardcode Python or wx versions at build time
Author: Jakub Wilk <jwilk@debian.org>
Forwarded: not-needed
Last-Update: 2012-04-18

--- a/setup.py
+++ b/setup.py
@@ -158,15 +158,9 @@
 ##########################################
 # Here's the basic distutils stuff
 
-# read versions from compile computer
-pythonversion = "%d.%d" % (sys.version_info[0],sys.version_info[1])
-import wx
-wx_version_info = wx.__version__.split(".")
-wxversion = "%s.%s" % (wx_version_info[0],wx_version_info[1])
-description = ("This is the Gamera installer.\n" + \
-               "\tPlease ensure that Python " + pythonversion + \
-               " and wxPython " + wxversion + "\n" + \
-               "\tare installed before proceeding.")
+description = ("This is the Gamera installer. " +
+               "Please ensure that Python 2.4 and wxPython 2.6.x " +
+               "(or later) are installed before proceeding.")
 
 includes = [(os.path.join(gamera_setup.include_path, path),
              glob.glob(os.path.join("include", os.path.join(path, ext))))