[Patches] [Patch #103220] Cygwin util.get_platform() fix

noreply@sourceforge.net noreply@sourceforge.net
Sat, 13 Jan 2001 09:08:18 -0800


Patch #103220 has been updated. 

Project: python
Category: distutils
Status: Open
Submitted by: jlt63
Assigned to : gvanrossum
Summary: Cygwin util.get_platform() fix

Follow-Ups:

Date: 2001-Jan-12 23:15
By: moshez

Comment:
Hmmmmm...only one question, since I don't have Cygwin to play with: how is
the "machine" in cygwin determined? You seem to go with the
"os-release-machine" format, so I assume cygwin does distinguish the
machines, but I have no idea wht the possibilities are.
-------------------------------------------------------

Date: 2001-Jan-12 18:32
By: jlt63

Comment:
This patch adds support for Cygwin to util.get_platform(). A Cygwin
specific case is needed due to the format of Cygwin's uname command:

$ uname -r
1.1.7(0.31/3/2)

Since the release field contains slashes, a path component name that
is based on this information becomes multiple path components instead
of a single one.

This patch corrects this problem by only using the leading part of the
release field that matches the regular expression "[\d.]+".

The procedure to apply the patch is as follows:

$ cd Lib/distutils
$ # save util.patch to the current directory
$ patch <util.patch
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=103220&group_id=5470