From patchwork Wed Oct 3 02:45:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: setup: ignore message about disabling 3rd party extensions because of version From: Matt Harbison X-Patchwork-Id: 35344 Message-Id: <37e915597429089cdb9c.1538534756@Envy> To: mercurial-devel@mercurial-scm.org Date: Tue, 02 Oct 2018 22:45:56 -0400 # HG changeset patch # User Matt Harbison # Date 1538534401 14400 # Tue Oct 02 22:40:01 2018 -0400 # Node ID 37e915597429089cdb9c0a2e609d10ba55278b4f # Parent 731961d972ba9ff5e3d473846e711b609121b496 setup: ignore message about disabling 3rd party extensions because of version I started getting into a bind recently when switching between py2 and py3 because switching requires a `make clean`, which kills __version__.py. But then when running `make local`, it picks up the local hg.exe (MSYS seems to prefix $PATH with '.'), which doesn't know its version. That causes it to emit a warning about needing at least 4.3 to load evolve, which caused setup.py to fail saying there is no working hg executable to figure out the version. If we can ignore general extension import failures, we should be able to ignore this too. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -262,7 +262,9 @@ def filterhgerr(err): and not e.startswith(b'warning: Not importing') and not e.startswith(b'obsolete feature not enabled') and not e.startswith(b'*** failed to import extension') - and not e.startswith(b'devel-warn:'))] + and not e.startswith(b'devel-warn:') + and not (e.startswith(b'(third party extension') + and e.endswith(b'or newer of Mercurial; disabling)')))] return b'\n'.join(b' ' + e for e in err) def findhg():