diff --git a/NEWS.rst b/NEWS.rst index eea9f9ddbdddba850ed2ab9a36ad517cb88fa5a7_TkVXUy5yc3Q=..cfe8d31ce81b5b16c26039896d23507a925b30ef_TkVXUy5yc3Q= 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -7,6 +7,8 @@ Clarify chown message. +Fix issue when trying to build an image using python 3.5 with development tools. + 7.0.4 ----- diff --git a/odoo_scripts/docker_build.py b/odoo_scripts/docker_build.py index eea9f9ddbdddba850ed2ab9a36ad517cb88fa5a7_b2Rvb19zY3JpcHRzL2RvY2tlcl9idWlsZC5weQ==..cfe8d31ce81b5b16c26039896d23507a925b30ef_b2Rvb19zY3JpcHRzL2RvY2tlcl9idWlsZC5weQ== 100644 --- a/odoo_scripts/docker_build.py +++ b/odoo_scripts/docker_build.py @@ -148,6 +148,13 @@ ) if odoo_type in ("odoo11", "odoo13"): myfile.write( - "python3-watchdog python3-ipdb python3-pyinotify\n" + "python3-watchdog python3-ipdb python3-pyinotify " + "python3-wheel\n" + ) + # newer setuptools_scm>6 is not compatible with python 3.5 due + # to the use of f-strings + myfile.write( + "RUN python3 -m pip install " + "\"setuptools_scm<6;python_version<='3.5'\"\n" ) # Install pdb++ @@ -152,6 +159,6 @@ ) # Install pdb++ - myfile.write("RUN pip3 install pdbpp\n") + myfile.write("RUN python3 -m pip install pdbpp\n") elif odoo_type in ("odoo10",): myfile.write("python-ipdb\n") myfile.write(