commit | 5a3e4cb0a2b922bbbcaf3e3afa9693b57e189ea4 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Fri Jul 20 19:29:04 2001 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Fri Jul 20 19:29:04 2001 +0000 |
tree | f00d31a49ebbae9c8db69c919dd8ebfb748a22cd | |
parent | 79e75e1916c33ee8e3de4c1b6c38221f2dba315c [diff] [blame] |
Patch #429442 from Jason Tishler: Corrects sys.platform and distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s.
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 01abd34..25ddbdf 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py
@@ -62,6 +62,7 @@ elif osname[:3] == "aix": return "%s-%s.%s" % (osname, version, release) elif osname[:6] == "cygwin": + osname = "cygwin" rel_re = re.compile (r'[\d.]+') m = rel_re.match(release) if m: