diff --git a/templates/ubuntu20/common/base.dockerfile.j2 b/templates/ubuntu20/common/base.dockerfile.j2 index d6308672..d1ca1c4c 100644 --- a/templates/ubuntu20/common/base.dockerfile.j2 +++ b/templates/ubuntu20/common/base.dockerfile.j2 @@ -35,7 +35,7 @@ SHELL ["/bin/bash", "-xo", "pipefail", "-c"] RUN apt-get update; \ apt-get install -y --no-install-recommends \ git \ - python3-dev \ + python3.9-dev \ python3-pip \ build-essential \ cmake \ @@ -192,12 +192,16 @@ ARG INSTALL_PACKAGES="-c=python -c=core" {% elif 'dev' == distribution or 'dev_no_samples' == distribution %} ARG LGPL_DEPS="g++ \ gcc \ - libc6-dev" + libc6-dev \ + python3.9-venv \ + python3-pip" ARG INSTALL_PACKAGES="-c=python -c=core -c=dev" {% else %} ARG LGPL_DEPS="g++ \ gcc \ - libc6-dev" + libc6-dev \ + python3.9-venv \ + python3-pip" ARG INSTALL_PACKAGES="-c=python" {% endif %} diff --git a/templates/ubuntu20/python/python38.dockerfile.j2 b/templates/ubuntu20/python/python39.dockerfile.j2 similarity index 71% rename from templates/ubuntu20/python/python38.dockerfile.j2 rename to templates/ubuntu20/python/python39.dockerfile.j2 index 74c59635..b2473807 100644 --- a/templates/ubuntu20/python/python38.dockerfile.j2 +++ b/templates/ubuntu20/python/python39.dockerfile.j2 @@ -1,4 +1,4 @@ # setup Python -ENV PYTHON_VER python3.8 +ENV PYTHON_VER python3.9 RUN ${PYTHON_VER} -m pip install --upgrade pip \ No newline at end of file diff --git a/utils/arg_parser.py b/utils/arg_parser.py index 4566e11a..b752abdb 100644 --- a/utils/arg_parser.py +++ b/utils/arg_parser.py @@ -519,7 +519,7 @@ def parse_args(name: str, description: str): # noqa if args.os in "ubuntu22": args.python = "python310" else: - args.python = "python38" + args.python = "python39" if args.python == "python38" and "win" in args.os: if not hasattr(args, "pre_stage_msbuild") or not args.pre_stage_msbuild: