Skip to content

How can I install a local version of my package with poetry? non setup.py file #1135

Closed Answered by finswimmer
SHxKM asked this question in Q&A
Discussion options

You must be logged in to vote

Lot's of confusion here. I try to summarize it:

  • The current project is installed in development mode within the venv with poetry install by default.
  • You can add other poetry and setup.py managed project as dependencies in development mode with poetry add ../relative_path/to/package_folder
  • Installing a poetry managed project - or better: any project managed by pyproject.toml instead of setup.py - in development mode by pip, is currently not possible. But that's on pip's side and not on poetry's. See also: pypa/pip#6434

Edit (2021-07-15): Since poetry 1.1 poetry add ../relative_path/to/package_folder doesn't add the path dependency in editable mode by default (see docs). For now you have …

Replies: 39 comments 33 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@melroy89
Comment options

Comment options

You must be logged in to vote
3 replies
@melMass
Comment options

@jaklan
Comment options

@melMass
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dash-samuel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@evisong
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@phillipuniverse
Comment options

@ekhaydarov
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cglacet
Comment options

Comment options

You must be logged in to vote
13 replies
@labdmitriy
Comment options

@revolter
Comment options

@revolter
Comment options

@MatanRubin
Comment options

@williscool
Comment options

Comment options

You must be logged in to vote
1 reply
@NeilGirdhar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@injuryholmes
Comment options

@noymer
Comment options

Comment options

You must be logged in to vote
3 replies
@merwok
Comment options

@justinTM
Comment options

@Secrus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1135 on December 03, 2020 09:27.