Mercurial > hg
comparison contrib/setup-pytype.sh @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 6aa74bcd4255 |
children | 832a1aeb576f |
comparison
equal
deleted
inserted
replaced
51699:bd1483fd7088 | 51700:7f0cb9ee0534 |
---|---|
3 set -e | 3 set -e |
4 set -u | 4 set -u |
5 | 5 |
6 # Find the python3 setup that would run pytype | 6 # Find the python3 setup that would run pytype |
7 PYTYPE=`which pytype` | 7 PYTYPE=`which pytype` |
8 PYTHON3=${PYTHON:-`head -n1 ${PYTYPE} | sed -s 's/#!//'`} | 8 PYTHON3=`head -n1 ${PYTYPE} | sed -s 's/#!//'` |
9 | 9 |
10 # Existing stubs that pytype processes live here | 10 # Existing stubs that pytype processes live here |
11 TYPESHED=$(${PYTHON3} -c "import pytype; print(pytype.__path__[0])")/typeshed/stubs | 11 TYPESHED=$(${PYTHON3} -c "import pytype; print(pytype.__path__[0])")/typeshed/stubs |
12 HG_STUBS=${TYPESHED}/mercurial | 12 HG_STUBS=${TYPESHED}/mercurial |
13 | 13 |