30 Aug
2000
30 Aug
'00
11:52 p.m.
Paul F. Dubois writes:
OK, I'll fix it. But first convince me this "<" really works though? 0.10 vs. 0.9, for example?
Actually, the easiest way to deal with this would be for distutils to provide a version_info structure like that defined in the sys module (starting with Python 1.6something): import distutils if distutils.version_info < (0, 9): bad_distutils_version() else: setup(...) The definition of sys.version_info guarantees that the value monotonically increases with each new release so long as we don't change the numbering scheme, and comparisons against only the interesting prefix (as above) work reasonably. -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member