Skip to content

Commit 5024021

Browse files
authored
fix(lambda-python): Pipenv projects no longer work for Python 3.6 (#20019)
`pipenv` has dropped support for Python 3.6. Our install command was installing the latest `pipenv`, but that will start failing. Instead, pin to the latest version that still supports 3.6. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 10f5ede commit 5024021

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@aws-cdk/aws-lambda-python/lib/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ARG HTTPS_PROXY
99

1010
# Upgrade pip (required by cryptography v3.4 and above, which is a dependency of poetry)
1111
RUN pip install --upgrade pip
12-
RUN pip install pipenv poetry
12+
13+
# pipenv 2022.4.8 is the last version with Python 3.6 support
14+
RUN pip install pipenv==2022.4.8 poetry
1315

1416
CMD [ "python" ]

0 commit comments

Comments
 (0)