Skip to content

Commit

Permalink
fix(lambda-python): Pipenv projects no longer work for Python 3.6 (#2…
Browse files Browse the repository at this point in the history
…0019)

`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*
  • Loading branch information
rix0rrr authored Apr 21, 2022
1 parent 10f5ede commit 5024021
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@aws-cdk/aws-lambda-python/lib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ ARG HTTPS_PROXY

# Upgrade pip (required by cryptography v3.4 and above, which is a dependency of poetry)
RUN pip install --upgrade pip
RUN pip install pipenv poetry

# pipenv 2022.4.8 is the last version with Python 3.6 support
RUN pip install pipenv==2022.4.8 poetry

CMD [ "python" ]

0 comments on commit 5024021

Please sign in to comment.