Patchwork [2,of,2,STABLE] setup.py: ignore warnings from obsolete

login
register
mail settings
Submitter Benoit Boissinot
Date March 9, 2013, 9:16 p.m.
Message ID <d61d6dcb5b245247c7db.1362863778@pouchy.lan>
Download mbox | patch
Permalink /patch/1095/
State Accepted
Commit d420ac09f866faca827abd9c65f494e01d53e3c6
Headers show

Comments

Benoit Boissinot - March 9, 2013, 9:16 p.m.
# HG changeset patch
# User Benoit Boissinot <benoit.boissinot@ens-lyon.org>
# Date 1362387952 -3600
#      Mon Mar 04 10:05:52 2013 +0100
# Branch stable
# Node ID d61d6dcb5b245247c7db076c4cf4acb13cf277d5
# Parent  229f531e76c296c4ea407a27ec53dac26d406425
setup.py: ignore warnings from obsolete

Fix version detection with recent hg versions.
Bryan O'Sullivan - March 10, 2013, 12:07 a.m.
On Sat, Mar 09, 2013 at 10:16:18PM +0100, Benoit Boissinot wrote:
> setup.py: ignore warnings from obsolete

Both patches applied, thanks.

Patch

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -149,7 +149,8 @@ 
     # a missing __init__.py in mercurial/locale, we also ignore that.
     err = [e for e in err.splitlines()
            if not e.startswith(b('Not trusting file')) \
-              and not e.startswith(b('warning: Not importing'))]
+              and not e.startswith(b('warning: Not importing')) \
+              and not e.startswith(b('obsolete feature not enabled'))]
     if err:
         print >> sys.stderr, "stderr from '%s':" % (' '.join(cmd))
         print >> sys.stderr, '\n'.join(['  ' + e for e in err])