mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
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":
|
||||
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:
|
||||
|
|
|
@ -64,6 +64,7 @@ then
|
|||
MACHDEP="$ac_md_system$ac_md_release"
|
||||
|
||||
case $MACHDEP in
|
||||
cygwin*) MACHDEP="cygwin";;
|
||||
'') MACHDEP="unknown";;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue