[Distutils] Numeric-16.0 problem

Fred L. Drake, Jr. fdrake@beopen.com
Wed Aug 30 23:52:00 2000


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