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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Jan 2001 18:32:17 -0800


Patch #103220 has been updated. 

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

Follow-Ups:

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