Skip to content

Commit

Permalink
Configured python versions suitable for Odoo version 17
Browse files Browse the repository at this point in the history
  • Loading branch information
katyukha committed Nov 16, 2023
1 parent 4504044 commit c507ece
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,8 @@ function install_build_python_guess_version {
echo "3.8.13";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 16 ]; then
echo "3.8.13";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
echo "3.10.13";
else
echoe -e "${REDC}ERROR${NC}: Automatic detection of python version for odoo ${ODOO_VERSION} is not supported!";
return 1;
Expand Down
2 changes: 2 additions & 0 deletions lib/odoo.bash
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ function odoo_ensure_python_version {
${python_interpreter} -c "import sys; assert (3, 7) <= sys.version_info < (3, 11);";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 16 ]; then
${python_interpreter} -c "import sys; assert (3, 7) <= sys.version_info < (3, 11);";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
${python_interpreter} -c "import sys; assert sys.version_info > (3, 10);";
else
echoe -e "${REDC}ERROR${NC}: Automatic detection of python version for odoo ${ODOO_VERSION} is not supported!";
return 1;
Expand Down

0 comments on commit c507ece

Please sign in to comment.