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

Python - pip install --no-deps #123

Closed
andormarkus opened this issue Mar 8, 2021 · 3 comments
Closed

Python - pip install --no-deps #123

andormarkus opened this issue Mar 8, 2021 · 3 comments

Comments

@andormarkus
Copy link

andormarkus commented Mar 8, 2021

Hi All,

In the current implementation when we want to create a lambda python package there is no option to use '--no-deps' flag.
If you want to run 'pip install --no-deps' than you have to go through the 'commands' option.

It would be great if the following TF variable could be added to the code
'pip_requirements_no-deps' defaults to 'false'.

Thanks,
Andor

@andormarkus andormarkus changed the title Python - pip3 install --no-deps Python - pip install --no-deps Mar 8, 2021
@antonbabenko
Copy link
Member

Hi @andormarkus !

This addition would make sense if python would be the only supported language and if there would be no other flags individual users may want to provide to pip. Also, there can be multiple sources provided.

It is much better for us (maintainers) to allow any customization using commands.

Closing this issue.

@pdecat
Copy link
Contributor

pdecat commented May 16, 2022

I too would like to pass --no-deps to pip as we are using poetry to manage project dependencies and fully generate the requirements.txt file so pip's dependency resolver is not needed.

How about adding a pip_args variable to allow passing arbitrary arguments to pip? Would a PR providing this be accepted?

Using commands prevents usage of the build_in_docker feature which is kind of a blocker for us.

Edit: I've opened #311 instead.

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants