Dilawar
Dilawar

Reputation: 5645

Equivalent of `python setup.py develop` in poetry

With setuptools, I could use python3 setup.py develop and my development directory could be found by python3 without setting PYTHONPATH or running install. Any change in the current development directory is immediately available without running python3 setup.py develop/install again. This saves quite a lot of time during the development.

Is there a poetry equivalent?

Update There is a feature request https://github.com/python-poetry/poetry/issues/1214

Upvotes: 9

Views: 9314

Answers (1)

sinoroc
sinoroc

Reputation: 22398

In poetry, the main project is installed as editable by default:

The current project is installed in editable mode by default.

-- Section "Installing dependencies only" of Poetry's documentation

It is also possible to install some dependencies as editable alongside the main project in the same virtual environment. For example:

[tool.poetry.dependencies]
Library = { path = "../Library/", develop = true }

Upvotes: 16

Related Questions