Patch #429442 from Jason Tishler: Corrects sys.platform and

distutils.util.get_platform() problems caused by the cruft contained
    in Cygwin's uname -s.
This commit is contained in:
Andrew M. Kuchling 2001-07-20 19:29:04 +00:00
parent 79e75e1916
commit 5a3e4cb0a2
3 changed files with 384 additions and 381 deletions

View File

@ -62,6 +62,7 @@ def get_platform ():
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:

763
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -64,6 +64,7 @@ then
MACHDEP="$ac_md_system$ac_md_release"
case $MACHDEP in
cygwin*) MACHDEP="cygwin";;
'') MACHDEP="unknown";;
esac
fi