Skip to content
Snippets Groups Projects
Commit 092c3342 authored by Boris Basic's avatar Boris Basic
Browse files

Set pip and setuptools to fixed versions to avoid issues

parent c698d584
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,8 @@ set python_version=3.11.8 ...@@ -20,6 +20,8 @@ set python_version=3.11.8
set python_launcher_version=3.11.8 set python_launcher_version=3.11.8
set python=python-%python_version% set python=python-%python_version%
set python_requirements=python_requirements.txt 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 geo_wheels_version=v2024.1.1
set gdal=GDAL-3.8.2-cp311-cp311-win_amd64.whl set gdal=GDAL-3.8.2-cp311-cp311-win_amd64.whl
set fiona=fiona-1.9.5-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 ( ...@@ -107,6 +109,8 @@ if /i %arg_v% == v8p4 (
set python_version=3.10.11 set python_version=3.10.11
set python=python-3.10.11 set python=python-3.10.11
set python_requirements=python_requirements_v8p4.txt 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 geo_wheels_version=v2023.11.3
set gdal=GDAL-3.7.3-cp310-cp310-win_amd64.whl set gdal=GDAL-3.7.3-cp310-cp310-win_amd64.whl
set fiona=fiona-1.9.5-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 ...@@ -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 dlltool --dllname %python_lib%.dll --def tmp.def --output-lib libs\lib%python_lib%.a || goto install_python_error
del tmp.def 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 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 del get-pip.py
%cd%\python -m pip install setuptools==%setuptools_version%
popd popd
exit /b 0 exit /b 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment