Author: bugman Date: Thu Jul 31 08:40:11 2014 New Revision: 24866 URL: http://svn.gna.org/viewcvs/relax?rev=24866&view=rev Log: Added a minfx minimum version check to the dep_check module. This is to avoid problems such as that reported at bug #22408 (http://gna.org/bugs/?22408). Modified: trunk/dep_check.py Modified: trunk/dep_check.py URL: http://svn.gna.org/viewcvs/relax/trunk/dep_check.py?rev=24866&r1=24865&r2=24866&view=diff ============================================================================== --- trunk/dep_check.py (original) +++ trunk/dep_check.py Thu Jul 31 08:40:11 2014 @@ -54,6 +54,10 @@ # Minfx python package check. try: import minfx + ver = minfx.__version__.split('.') + if not (minfx.__version__ == 'trunk' or (int(ver[0]) <= 1 and int(ver[1]) <= 0 and int(ver[2]) <= 9)): + sys.stderr.write("Version %s of the 'minfx' dependency is too old, minfx >= 1.0.9 is required.\n" % minfx.__version__) + sys.exit() except ImportError: sys.stderr.write("The dependency 'minfx' has not been installed (see https://gna.org/projects/minfx/).\n") sys.exit()