|
1 | | -# Temporary disable test, reenable after python upgrade is finished |
2 | | -return() |
3 | | - |
4 | | -# NOTE find_package will try to use at least python3.8 as follows depending on platform version |
5 | | -# Ubuntu18.04; explictly installed python3.8 (default is python3.6) |
6 | | -# Ubuntu20.04; default python3.8 |
| 1 | +# NOTE find_package will try to use at least python3.10 as follows depending on platform version |
| 2 | +# Ubuntu20.04; explictly installed python3.10 (default is python3.8) |
7 | 3 | # Ubuntu22.04; default python3.10 |
8 | 4 | # Ubuntu24.04; default python3.12 |
9 | 5 | # refer https://github.com/Samsung/ONE/issues/9962 |
| 6 | +# refer https://github.com/Samsung/ONE/issues/15226 |
10 | 7 | # NOTE Require same python version of common-artifacts |
11 | | -# find python 3.8 or above |
12 | | -find_package(Python 3.8 EXACT COMPONENTS Interpreter Development QUIET) |
| 8 | +# find python 3.10 or above |
| 9 | +find_package(Python 3.10 EXACT COMPONENTS Interpreter Development QUIET) |
13 | 10 | if(NOT Python_FOUND) |
14 | | - find_package(Python 3.8 COMPONENTS Interpreter Development QUIET) |
| 11 | + find_package(Python 3.10 COMPONENTS Interpreter Development QUIET) |
15 | 12 | endif() |
16 | 13 |
|
17 | 14 | if(NOT Python_Development_FOUND) |
18 | 15 | message(STATUS "Build dalgona: FAILED (Python3 development package is missing)") |
19 | 16 | return() |
20 | 17 | endif() |
21 | 18 |
|
22 | | -# NOTE assume only use 3.8.x or 3.10.x or 3.12.x |
23 | | -if((Python_VERSION VERSION_GREATER_EQUAL 3.8) AND (Python_VERSION VERSION_LESS 3.9)) |
24 | | - set(PYTHON_VERSION_MINOR 8) |
25 | | -elseif((Python_VERSION VERSION_GREATER_EQUAL 3.10) AND (Python_VERSION VERSION_LESS 3.11)) |
| 19 | +# NOTE assume only use 3.10.x or 3.12.x |
| 20 | +if((Python_VERSION VERSION_GREATER_EQUAL 3.10) AND (Python_VERSION VERSION_LESS 3.11)) |
26 | 21 | set(PYTHON_VERSION_MINOR 10) |
27 | 22 | elseif((Python_VERSION VERSION_GREATER_EQUAL 3.12) AND (Python_VERSION VERSION_LESS 3.13)) |
28 | 23 | set(PYTHON_VERSION_MINOR 12) |
|
0 commit comments