Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support passing extra args to pip install #655

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

LironEr
Copy link

@LironEr LironEr commented Jan 17, 2025

Description

Added support to pass extra arguments to pip install command

{
  path                   = "src/python-app1",
  pip_requirements       = true,
  pip_install_extra_args = ["--platform", "manylinux2014_aarch64", "--only-binary", ":all:"]
}

Motivation and Context

Due to limitations with our CI, we can't use docker when installing and zipping requirements.
To overcome this we use the platform flag when running pip install to download the right distribution per lambda architecture.

Breaking Changes

No

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects

I have tested these changes locally and deployed a lambda to AWS. I am happy to do additional testing if necessary.

  • I have executed pre-commit run -a on my pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant