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

Feature request: Allow ignoring dependencies when building with python pip #496

Open
mew1033 opened this issue May 4, 2023 · 2 comments
Labels
type/feature Feature request

Comments

@mew1033
Copy link

mew1033 commented May 4, 2023

I'd like some way to set a flag, preferably per library, that disables downloading dependencies. The example I have is that I'm using the pynamodb library to interact with dynamodb, and when installing the library, it pulls in the entire botocore as a dependency. This pushes the lambda function over the size limit for editing in the console, which is quite annoying. Botocore is built into the lambda runtime, so pynamo doesn't need to install its own copy.

See pynamodb/PynamoDB#1166

@mew1033 mew1033 added stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. type/feature Feature request labels May 4, 2023
@hnnasit
Copy link
Contributor

hnnasit commented May 7, 2023

Hi @mew1033, you can use Makefile builder to build with sam build instead of using the bundled builder. Here's the docs link with more info. In the Makefile, you can include --no-deps flag for the pip install command to get what you are looking for.

@hnnasit hnnasit removed the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label May 7, 2023
@mew1033
Copy link
Author

mew1033 commented May 8, 2023

That could work. I'd love to realize the full benefits of the pip builder, but in the meantime that would probably work. Thanks!

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

No branches or pull requests

2 participants