delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/29/09:02:49

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 29 May 2008 09:01:57 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: binutils 20080523-1: version string breaks python2.5 distutils
In-reply-to: <004b01c8c188$07c45700$2708a8c0@CAM.ARTIMI.COM>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20080529130157.GA736@tishler.net>
MIME-version: 1.0
References: <20080528 DOT 214955 DOT 28844 DOT 0 AT webmail21 DOT dca DOT untd DOT com> <20080529020130 DOT GA13665 AT ednor DOT casa DOT cgf DOT cx> <004b01c8c188$07c45700$2708a8c0 AT CAM DOT ARTIMI DOT COM>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--gatW/ieO32f1wygP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, May 29, 2008 at 01:32:16PM +0100, Dave Korn wrote:
> So, yes, Python should definitely use a pattern match to ignore the
> separator character.

This is a known issue:

    http://bugs.python.org/issue2234

Unfortunately, resolution of this issue has stalled.

If the OP verifies that the attached patch fixes his problem, then I
will release a Cygwin Python with this patch applied.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--gatW/ieO32f1wygP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="cygwinccompiler.patch"

--- previous/cygwinccompiler.py	2005-10-28 20:07:08.000000000 -0700
+++ cygwinccompiler.py	2008-03-04 09:46:28.000000000 -0800
@@ -407,7 +407,7 @@
         out = os.popen(gcc_exe + ' -dumpversion','r')
         out_string = out.read()
         out.close()
-        result = re.search('(\d+\.\d+(\.\d+)*)',out_string)
+        result = re.search('(\d+\.\d+(\.\d+)?)',out_string)
         if result:
             gcc_version = StrictVersion(result.group(1))
         else:
@@ -419,7 +419,7 @@
         out = os.popen(ld_exe + ' -v','r')
         out_string = out.read()
         out.close()
-        result = re.search('(\d+\.\d+(\.\d+)*)',out_string)
+        result = re.search('(\d+\.\d+(\.\d+)?)',out_string)
         if result:
             ld_version = StrictVersion(result.group(1))
         else:
@@ -431,7 +431,7 @@
         out = os.popen(dllwrap_exe + ' --version','r')
         out_string = out.read()
         out.close()
-        result = re.search(' (\d+\.\d+(\.\d+)*)',out_string)
+        result = re.search(' (\d+\.\d+(\.\d+)?)',out_string)
         if result:
             dllwrap_version = StrictVersion(result.group(1))
         else:


--gatW/ieO32f1wygP
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--gatW/ieO32f1wygP--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019