tools/release: add mypy package
This commit is contained in:
@@ -208,7 +208,7 @@ function build_python() {
|
||||
command -v python3 | xargs echo "python3: " | tee -a build.log
|
||||
python3 -c "import distutils.util as u; print(u.get_platform())" | tee -a build.log
|
||||
python3 -m pip install --upgrade --user --break-system-package pip
|
||||
python3 -m pip install --upgrade --user --break-system-package wheel absl-py mypy-protobuf virtualenv
|
||||
python3 -m pip install --upgrade --user --break-system-package wheel absl-py mypy mypy-protobuf virtualenv
|
||||
echo "check protoc-gen-mypy..."
|
||||
command -v protoc-gen-mypy | xargs echo "protoc-gen-mypy: " | tee -a build.log
|
||||
protoc-gen-mypy --version | xargs echo "protoc-gen-mypy version: " | tee -a build.log
|
||||
|
||||
@@ -231,7 +231,7 @@ function build_python() {
|
||||
command -v "python${PY_VERSION}" | xargs echo "python${PY_VERSION}: " | tee -a build.log
|
||||
"python${PY_VERSION}" -c "import distutils.util as u; print(u.get_platform())" | tee -a build.log
|
||||
"python${PY_VERSION}" -m pip install --upgrade --user pip
|
||||
"python${PY_VERSION}" -m pip install --upgrade --user wheel absl-py mypy-protobuf virtualenv
|
||||
"python${PY_VERSION}" -m pip install --upgrade --user wheel absl-py mypy mypy-protobuf virtualenv
|
||||
echo "check protoc-gen-mypy..."
|
||||
command -v protoc-gen-mypy | xargs echo "protoc-gen-mypy: " | tee -a build.log
|
||||
protoc-gen-mypy --version | xargs echo "protoc-gen-mypy version: " | tee -a build.log
|
||||
|
||||
@@ -277,7 +277,7 @@ for %%v in (8 9 10 11 12) do (
|
||||
:: Check Python
|
||||
which.exe C:\python3%%v-64\python.exe || exit 1
|
||||
echo C:\python3%%v-64\python.exe: FOUND | tee.exe -a build.log
|
||||
C:\python3%%v-64\python.exe -m pip install --upgrade --user absl-py mypy-protobuf
|
||||
C:\python3%%v-64\python.exe -m pip install --upgrade --user absl-py mypy mypy-protobuf
|
||||
set PATH+=;%userprofile%\appdata\roaming\python\python3%%v\Scripts"
|
||||
set PATH+=;C:\python3%%v-64\Scripts"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user