From: Ronald Oussoren Date: Thu, 22 Nov 2007 10:14:26 +0000 (+0000) Subject: A test that should test for osx >= 10.4.0 actually tested for os versions <= 10.4... X-Git-Tag: v2.5.2c1~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce189e4e7b96de538b2a1b9a60742bac32081bc4;p=python A test that should test for osx >= 10.4.0 actually tested for os versions <= 10.4. The end result is that a universal ("fat") build will claim to be a single-architecture on on OSX 10.5 (Leopard). This patch fixes this issue. --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index cfcc6a951e..731ee988b5 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -106,7 +106,7 @@ def get_platform (): osname = "macosx" - if (release + '.') < '10.4.' and \ + if (release + '.') >= '10.4.' and \ get_config_vars().get('UNIVERSALSDK', '').strip(): # The universal build will build fat binaries, but not on # systems before 10.4