mirror of https://github.com/python/cpython
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:
parent
79e75e1916
commit
5a3e4cb0a2
|
@ -62,6 +62,7 @@ def get_platform ():
|
||||||
elif osname[:3] == "aix":
|
elif osname[:3] == "aix":
|
||||||
return "%s-%s.%s" % (osname, version, release)
|
return "%s-%s.%s" % (osname, version, release)
|
||||||
elif osname[:6] == "cygwin":
|
elif osname[:6] == "cygwin":
|
||||||
|
osname = "cygwin"
|
||||||
rel_re = re.compile (r'[\d.]+')
|
rel_re = re.compile (r'[\d.]+')
|
||||||
m = rel_re.match(release)
|
m = rel_re.match(release)
|
||||||
if m:
|
if m:
|
||||||
|
|
|
@ -64,6 +64,7 @@ then
|
||||||
MACHDEP="$ac_md_system$ac_md_release"
|
MACHDEP="$ac_md_system$ac_md_release"
|
||||||
|
|
||||||
case $MACHDEP in
|
case $MACHDEP in
|
||||||
|
cygwin*) MACHDEP="cygwin";;
|
||||||
'') MACHDEP="unknown";;
|
'') MACHDEP="unknown";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue