Commit 4715f1de by finswimmer Committed by GitHub

Merge pull request #1862 from python-poetry/docs/no-root

Document --no-root
parents 9ab25813 94152a1e
...@@ -134,6 +134,15 @@ the dependencies installed are still working even if your dependencies released ...@@ -134,6 +134,15 @@ the dependencies installed are still working even if your dependencies released
For libraries it is not necessary to commit the lock file. For libraries it is not necessary to commit the lock file.
### Installing dependencies only
The current project is installed in [editable](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs) mode by default.
If you want to install the dependencies only, run the `install` command with the `--no-root` flag:
```bash
poetry install --no-root
```
## Updating dependencies to their latest versions ## Updating dependencies to their latest versions
......
...@@ -34,6 +34,12 @@ libraries and dependencies outlined in that file. If the file does not ...@@ -34,6 +34,12 @@ libraries and dependencies outlined in that file. If the file does not
exist it will look for <comment>pyproject.toml</> and do the same. exist it will look for <comment>pyproject.toml</> and do the same.
<info>poetry install</info> <info>poetry install</info>
By default, the above command will also install the current project. To install only the
dependencies and not including the current project, run the command with the
<info>--no-root</info> option like below:
<info> poetry install --no-root</info>
""" """
_loggers = ["poetry.repositories.pypi_repository"] _loggers = ["poetry.repositories.pypi_repository"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment