comparison setup.py @ 39986:138e2d6d3b53

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 02 Oct 2018 22:40:01 -0400
parents ae531f5e583c
children 73fef626dae3
comparison
equal deleted inserted replaced
39985:825a636812a4 39986:138e2d6d3b53
260 err = [e for e in err.splitlines() 260 err = [e for e in err.splitlines()
261 if (not e.startswith(b'not trusting file') 261 if (not e.startswith(b'not trusting file')
262 and not e.startswith(b'warning: Not importing') 262 and not e.startswith(b'warning: Not importing')
263 and not e.startswith(b'obsolete feature not enabled') 263 and not e.startswith(b'obsolete feature not enabled')
264 and not e.startswith(b'*** failed to import extension') 264 and not e.startswith(b'*** failed to import extension')
265 and not e.startswith(b'devel-warn:'))] 265 and not e.startswith(b'devel-warn:')
266 and not (e.startswith(b'(third party extension')
267 and e.endswith(b'or newer of Mercurial; disabling)')))]
266 return b'\n'.join(b' ' + e for e in err) 268 return b'\n'.join(b' ' + e for e in err)
267 269
268 def findhg(): 270 def findhg():
269 """Try to figure out how we should invoke hg for examining the local 271 """Try to figure out how we should invoke hg for examining the local
270 repository contents. 272 repository contents.