diff --git a/build-telemac.bat b/build-telemac.bat index c1051fd766e4a86a49526967c336d2b8cd33d6b5..87dc929d36f8cecc3c0e2949202137c443168b7e 100644 --- a/build-telemac.bat +++ b/build-telemac.bat @@ -20,6 +20,8 @@ set python_version=3.11.8 set python_launcher_version=3.11.8 set python=python-%python_version% set python_requirements=python_requirements.txt +set pip_version=24.0 +set setuptools_version=65.5.0 set geo_wheels_version=v2024.1.1 set gdal=GDAL-3.8.2-cp311-cp311-win_amd64.whl set fiona=fiona-1.9.5-cp311-cp311-win_amd64.whl @@ -107,6 +109,8 @@ if /i %arg_v% == v8p4 ( set python_version=3.10.11 set python=python-3.10.11 set python_requirements=python_requirements_v8p4.txt + set pip_version=22.2.2 + set setuptools_version=63.2.0 set geo_wheels_version=v2023.11.3 set gdal=GDAL-3.7.3-cp310-cp310-win_amd64.whl set fiona=fiona-1.9.5-cp310-cp310-win_amd64.whl @@ -430,10 +434,11 @@ gendef - %python_lib%.dll > tmp.def || goto install_python_error dlltool --dllname %python_lib%.dll --def tmp.def --output-lib libs\lib%python_lib%.a || goto install_python_error del tmp.def -rem Download and install pip +rem Download and install pip and install setuptools curl -OJ https://bootstrap.pypa.io/get-pip.py || goto install_python_error -%cd%\python get-pip.py --no-warn-script-location || goto install_python_error +%cd%\python get-pip.py "pip==%pip_version%" --no-setuptools --no-wheel --no-warn-script-location || goto install_python_error del get-pip.py +%cd%\python -m pip install setuptools==%setuptools_version% popd exit /b 0