Skip to content

Commit 2b2a5f6

Browse files
committed
tools/release: remove Python 3.8 support
note: BTW Protobuf v31.0 do not support Python 3.8
1 parent 9b7ba5b commit 2b2a5f6

4 files changed

Lines changed: 11 additions & 42 deletions

File tree

tools/release/build_delivery_macos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ function build_python() {
213213
command -v swig | xargs echo "swig: " | tee -a build.log
214214

215215
if [[ ${PLATFORM} == "arm64" ]]; then
216-
local -r PY=(3.8 3.9 3.10 3.11 3.12 3.13)
216+
local -r PY=(3.9 3.10 3.11 3.12 3.13)
217217
else
218-
local -r PY=(3.8 3.9 3.10 3.11 3.12 3.13)
218+
local -r PY=(3.9 3.10 3.11 3.12 3.13)
219219
fi
220220

221221
# Check Python env

tools/release/build_delivery_win.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ set PATH=%userprofile%\AppData\Roaming\Python\Python3%1\Scripts;%PATH%
269269
::echo "python path: %PATH%"
270270
GOTO :eof
271271

272-
REM PYTHON 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
272+
REM PYTHON 3.9, 3.10, 3.11, 3.12, 3.13
273273
:BUILD_PYTHON
274274
title Build Python
275275
set HASH=
@@ -279,7 +279,7 @@ echo Python build seems up to date, skipping
279279
exit /B 0
280280
)
281281

282-
FOR %%v IN (8 9 10 11 12 13) DO (
282+
FOR %%v IN (9 10 11 12 13) DO (
283283
title Build Python 3.%%v
284284
echo Check python3.%%v... | tee.exe -a build.log
285285
which.exe "C:\python3%%v-64\python.exe" || exit 1
@@ -342,7 +342,7 @@ del /s /f /q temp_dotnet
342342
rmdir /s /q temp_dotnet
343343
del /s /f /q temp_java
344344
rmdir /s /q temp_java
345-
FOR %%v IN (8 9 10 11 12) do (
345+
FOR %%v IN (9 10 11 12 13) do (
346346
del /s /f /q temp_python3%%v
347347
rmdir /s /q temp_python3%%v
348348
)

tools/release/test_delivery_macos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ command -v make | xargs echo "make: " | tee -a test.log
2323
command -v swig | xargs echo "swig: " | tee -a test.log
2424
# python
2525
if [[ ${PLATFORM} == "arm64" ]]; then
26-
local -r PY=(3.8 3.9 3.10 3.11 3.12 3.13)
26+
local -r PY=(3.9 3.10 3.11 3.12 3.13)
2727
else
28-
local -r PY=(3.8 3.9 3.10 3.11 3.12 3.13)
28+
local -r PY=(3.9 3.10 3.11 3.12 3.13)
2929
fi
3030

3131
for i in "${PY[@]}"; do

tools/release/test_delivery_win.cmd

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,50 +11,19 @@ make.exe print-OR_TOOLS_VERSION | tee.exe test.log
1111
which.exe cmake || exit 1
1212
which.exe cmake | tee.exe -a test.log
1313
REM Python
14-
which.exe C:\python38-64\python.exe || exit 1
15-
echo C:\python38-64\python.exe: FOUND | tee.exe -a test.log
1614
which.exe C:\python39-64\python.exe || exit 1
1715
echo C:\python39-64\python.exe: FOUND | tee.exe -a test.log
1816
which.exe C:\python310-64\python.exe || exit 1
1917
echo C:\python310-64\python.exe: FOUND | tee.exe -a test.log
2018
which.exe C:\python311-64\python.exe || exit 1
2119
echo C:\python311-64\python.exe: FOUND | tee.exe -a test.log
20+
which.exe C:\python312-64\python.exe || exit 1
21+
echo C:\python312-64\python.exe: FOUND | tee.exe -a test.log
22+
which.exe C:\python313-64\python.exe || exit 1
23+
echo C:\python313-64\python.exe: FOUND | tee.exe -a test.log
2224

2325
set LOCAL_PATH=%PATH%
2426

25-
REM ##################
26-
REM ## PYTHON 3.8 ##
27-
REM ##################
28-
echo Cleaning Python... | tee.exe -a test.log
29-
make.exe clean_python WINDOWS_PATH_TO_PYTHON=c:\python38-64
30-
echo Cleaning Python...DONE | tee.exe -a test.log
31-
32-
REM make.exe python WINDOWS_PATH_TO_PYTHON=c:\python38-64 || exit 1
33-
REM echo make python3.8: DONE | tee.exe -a build.log
34-
REM make.exe test_python WINDOWS_PATH_TO_PYTHON=c:\python38-64 || exit 1
35-
REM echo make test_python3.8: DONE | tee.exe -a build.log
36-
echo Rebuild Python3.8 pypi archive... | tee.exe -a test.log
37-
make.exe package_python WINDOWS_PATH_TO_PYTHON=c:\python38-64 || exit 1
38-
echo Rebuild Python3.8 pypi archive...DONE | tee.exe -a test.log
39-
40-
echo Creating Python3.8 venv... | tee.exe -a test.log
41-
set PATH=c:\python38-64;c:\python38-64\Scripts;%PATH%
42-
python -m pip install virtualenv
43-
set TEMP_DIR=temp_python38
44-
python -m virtualenv %TEMP_DIR%\venv
45-
set PATH=%LOCAL_PATH%
46-
echo Creating Python3.8 venv...DONE | tee.exe -a test.log
47-
48-
echo Installing ortools Python3.8 venv... | tee.exe -a test.log
49-
FOR %%i IN (%TEMP_DIR%\ortools\dist\*.whl) DO %TEMP_DIR%\venv\Scripts\python -m pip install %%i
50-
echo Installing ortools Python3.8 venv...DONE | tee.exe -a test.log
51-
52-
echo Testing ortools Python3.8... | tee.exe -a test.log
53-
%TEMP_DIR%\venv\Scripts\python cmake\samples\python\sample.py 2>&1 | tee.exe -a test.log
54-
echo Testing ortools Python3.8...DONE | tee.exe -a test.log
55-
56-
FOR %%i IN (%TEMP_DIR%\ortools\dist\*.whl) DO copy %%i .
57-
5827
REM ##################
5928
REM ## PYTHON 3.9 ##
6029
REM ##################

0 commit comments

Comments
 (0)