|
1 | 1 | #[[ Generate common python virtual enviornment ]]
|
2 |
| -# NOTE find_package try to use at least python3.8 as follows depending on platform version |
3 |
| -# Ubuntu18.04; explictly installed python3.8 (default is python3.6) |
4 |
| -# Ubuntu20.04; default python3.8 |
| 2 | +# NOTE find_package try to use at least python3.10 as follows depending on platform version |
| 3 | +# Ubuntu20.04; explictly installed python3.10 (default is python3.8) |
5 | 4 | # Ubuntu22.04; default python3.10
|
6 | 5 | # Ubuntu24.04; default python3.12
|
7 | 6 | # refer https://github.com/Samsung/ONE/issues/9962
|
8 |
| -# find python 3.8 or above |
9 |
| -find_package(Python 3.8 EXACT COMPONENTS Interpreter QUIET) |
| 7 | +# refer https://github.com/Samsung/ONE/issues/15226 |
| 8 | +# find python 3.10 or above |
| 9 | +find_package(Python 3.10 EXACT COMPONENTS Interpreter QUIET) |
10 | 10 | if(NOT Python_FOUND)
|
11 |
| - find_package(Python 3.8 COMPONENTS Interpreter QUIET) |
| 11 | + find_package(Python 3.10 COMPONENTS Interpreter QUIET) |
12 | 12 | endif()
|
13 | 13 |
|
14 | 14 | if(NOT Python_Interpreter_FOUND)
|
15 | 15 | message(STATUS "Build common-artifacts: FAILED (Python3 is missing)")
|
16 | 16 | return()
|
17 | 17 | endif()
|
18 | 18 |
|
19 |
| -# NOTE assume only use 3.8.x or 3.10.x or 3.12.x |
20 |
| -if((Python_VERSION VERSION_GREATER_EQUAL 3.8) AND (Python_VERSION VERSION_LESS 3.9)) |
21 |
| - set(PYTHON_VERSION_MINOR 8) |
22 |
| -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)) |
23 | 21 | set(PYTHON_VERSION_MINOR 10)
|
24 | 22 | elseif((Python_VERSION VERSION_GREATER_EQUAL 3.12) AND (Python_VERSION VERSION_LESS 3.13))
|
25 | 23 | set(PYTHON_VERSION_MINOR 12)
|
@@ -48,8 +46,8 @@ set(REQUIREMENTS_FILE "requirements.txt")
|
48 | 46 | set(REQUIREMENTS_OVERLAY_PATH "${VIRTUALENV_OVERLAY}/${REQUIREMENTS_FILE}")
|
49 | 47 |
|
50 | 48 | set(PYTHON_OVERLAY python3)
|
51 |
| -if(PYTHON_EXECUTABLE MATCHES python3.8) |
52 |
| - set(PYTHON_OVERLAY python3.8) |
| 49 | +if(PYTHON_EXECUTABLE MATCHES python3.10) |
| 50 | + set(PYTHON_OVERLAY python3.10) |
53 | 51 | endif()
|
54 | 52 |
|
55 | 53 | # NOTE when using behind proxy with self signed certificate, need to set '--trusted-host' options
|
|
0 commit comments