tools/release: fix distutils.get_platform() usage.

deprecated -> replaced by platform.platform()
This commit is contained in:
Corentin Le Molgat
2023-10-27 14:35:11 +02:00
parent ba7735e46f
commit 99bc30bc61
2 changed files with 2 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ function build_python() {
# Check Python env
echo "check python3..."
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 -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
echo "check protoc-gen-mypy..."

View File

@@ -229,7 +229,7 @@ function build_python() {
echo "check python3..."
command -v python3 | xargs echo "python3: " | tee -a build.log
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}" -c "import platform as p; print(p.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 mypy-protobuf virtualenv
echo "check protoc-gen-mypy..."