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

Option to install only dependencies #1525

Closed
berislavlopac opened this issue Oct 31, 2019 · 4 comments
Closed

Option to install only dependencies #1525

berislavlopac opened this issue Oct 31, 2019 · 4 comments
Labels
kind/feature Feature requests/implementations

Comments

@berislavlopac
Copy link

Feature Request

When running poetry install, it installs all the dependencies and then adds the project itself, in the "editable" mode. Sometimes it would be preferable to install just the dependencies, and let the user install the project itself manually, or not at all (for example, when building a docker image installing the dependencies first gets cached, so future builds -- if there was just a code change -- are much faster; see https://pythonspeed.com/articles/pipenv-docker/).

So I'd like to propose an option for the install command -- let's say --deps-only -- that would skip that last step of installing the project itself.

@berislavlopac berislavlopac added the kind/feature Feature requests/implementations label Oct 31, 2019
@Jamim
Copy link
Contributor

Jamim commented Oct 31, 2019

Hello @berislavlopac,

Starting from 1.0.0a3, there is the --no-root option that allows to skip installing the project itself.
Corresponding PR: #757.

https://github.com/sdispater/poetry#install

By default poetry will install your project's package everytime you run install:

If you want to skip this installation, use the --no-root option.

poetry install --no-root

@justinmayer
Copy link
Contributor

This is a duplicate of #800, which has already been addressed. The requested functionality is already available in the 1.0 beta releases via: poetry install --no-root

@berislavlopac: Would you please close this issue in order to reduce clutter in Poetry's issue tracker? Thank you!

@berislavlopac
Copy link
Author

Sure!

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

3 participants