tools/release: more cleanup

This commit is contained in:
Corentin Le Molgat
2025-06-19 14:48:50 +02:00
parent 3434ae4839
commit 6ceb6d401e
5 changed files with 13 additions and 8 deletions

View File

@@ -30,6 +30,7 @@ ${BOLD}DESCRIPTION${RESET}
${BOLD}OPTIONS${RESET}
\t-h --help: display this help text
\tarchive: build all (C++, .Net, Java) archives
\tdotnet: build all .Net packages
\tjava: build all Java packages
\tpython: build all Pyhon packages
@@ -208,7 +209,7 @@ function build_python() {
command -v python3 | xargs echo "python3: " | tee -a build.log
python3 -c "import platform as p; print(p.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 mypy-protobuf virtualenv
python3 -m pip install --upgrade --user --break-system-package wheel absl-py mypy mypy-protobuf virtualenv "typing-extensions>=4.12"
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

View File

@@ -30,6 +30,7 @@ ${BOLD}DESCRIPTION${RESET}
${BOLD}OPTIONS${RESET}
\t-h --help: display this help text
\tarchive: build all (C++, .Net, Java) archives
\tdotnet: build all .Net packages
\tjava: build all Java packages
\tpython: build all Pyhon packages
@@ -291,13 +292,14 @@ function build_python() {
echo "DONE" | tee -a build.log
if [[ ${PLATFORM} == "x86_64" ]]; then
echo -n " Build all..." | tee -a build.log
# on macos X86_64 stubgen will timeout -> need to build 2 times
cmake --build "temp_python${PY_VERSION}" -j8 -v || true
echo -n " Build all few times..." | tee -a build.log
# on macos X86_64 stubgen will timeout -> need to build few times
cmake --build "temp_python${PY_VERSION}" -j4 -v || true
sleep 10
cmake --build "temp_python${PY_VERSION}" -v || true
echo "DONE" | tee -a build.log
sleep 5
echo -n " ReBuild all..." | tee -a build.log
cmake --build "temp_python${PY_VERSION}" -j8 -v
cmake --build "temp_python${PY_VERSION}" -j4 -v
echo "DONE" | tee -a build.log
else
echo -n " Build all..." | tee -a build.log

View File

@@ -30,6 +30,7 @@ ${BOLD}DESCRIPTION${RESET}
${BOLD}OPTIONS${RESET}
\t-h --help: display this help text
\tarchive: build all (C++, .Net, Java) archives
\tdotnet: build all .Net packages
\tjava: build all Java packages
\tpython: build all Pyhon packages

View File

@@ -30,6 +30,7 @@ ${BOLD}DESCRIPTION${RESET}
${BOLD}OPTIONS${RESET}
\t-h --help: display this help text
\tarchive: build all (C++, .Net, Java) archives
\tdotnet: build all .Net packages
\tjava: build all Java packages
\tpython: build all Pyhon packages

View File

@@ -93,7 +93,7 @@ echo help: show this help text (default)
echo dotnet: Build dotnet packages
echo java: Build java packages
echo python: Build python packages
echo archive: Build archive
echo archive: Build all (C++, .Net, Java) archives
echo examples: Build examples archives
echo all: build everything
echo reset: delete all artifacts and suppress cache file
@@ -284,7 +284,7 @@ FOR %%v IN (9 10 11 12 13) DO (
echo Check python3.%%v... | tee.exe -a build.log
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 mypy-protobuf protobuf numpy pandas
C:\python3%%v-64\python.exe -m pip install --upgrade --user absl-py mypy mypy-protobuf protobuf numpy pandas "typing-extensions>=4.12"
call :subroutine %%v