##// END OF EJS Templates
hghave: move from requiring the PYTHON3 env var to looking for `python3`...
Augie Fackler -
r39387:4cfd1eeb default
parent child Browse files
Show More
@@ -631,7 +631,7 b' def has_py3k():'
631
631
632 @check("py3exe", "a Python 3.x interpreter is available")
632 @check("py3exe", "a Python 3.x interpreter is available")
633 def has_python3exe():
633 def has_python3exe():
634 return 'PYTHON3' in os.environ
634 return matchoutput('python3 -V', br'^Python 3.(5|6|7|8|9)')
635
635
636 @check("py3pygments", "Pygments available on Python 3.x")
636 @check("py3pygments", "Pygments available on Python 3.x")
637 def has_py3pygments():
637 def has_py3pygments():
@@ -27,7 +27,7 b''
27 > -X hgdemandimport/demandimportpy2.py \
27 > -X hgdemandimport/demandimportpy2.py \
28 > -X hgext/fsmonitor/pywatchman \
28 > -X hgext/fsmonitor/pywatchman \
29 > -X mercurial/thirdparty/cbor \
29 > -X mercurial/thirdparty/cbor \
30 > | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py \
30 > | sed 's|\\|/|g' | xargs python3 contrib/check-py3-compat.py \
31 > | sed 's/[0-9][0-9]*)$/*)/'
31 > | sed 's/[0-9][0-9]*)$/*)/'
32 contrib/python-zstandard/setup.py not using absolute_import
32 contrib/python-zstandard/setup.py not using absolute_import
33 contrib/python-zstandard/setup_zstd.py not using absolute_import
33 contrib/python-zstandard/setup_zstd.py not using absolute_import
@@ -48,6 +48,6 b''
48
48
49 #if py3exe py3pygments
49 #if py3exe py3pygments
50 $ testrepohg files 'set:(**.py) and grep(pygments)' | sed 's|\\|/|g' \
50 $ testrepohg files 'set:(**.py) and grep(pygments)' | sed 's|\\|/|g' \
51 > | xargs $PYTHON3 contrib/check-py3-compat.py \
51 > | xargs python3 contrib/check-py3-compat.py \
52 > | sed 's/[0-9][0-9]*)$/*)/'
52 > | sed 's/[0-9][0-9]*)$/*)/'
53 #endif
53 #endif
General Comments 0
You need to be logged in to leave comments. Login now