RE: Issue #34 - pip install -e . equivalent?
#5276
Replies: 5 comments 17 replies
-
@NeilGirdhar In continuation of our discussion, let's assume I wish to add If I run poetry run py -m pip install -e git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib this installs the package in development mode (under What should I put in my [too.poetry]
# ...
packages = [
{ include = "my_package" },
{ include = "matplotlib", from = ".venv/src" },
] |
Beta Was this translation helpful? Give feedback.
-
So your user requires a modified version of matplotlib? Why not fork matplotlib into a new github repo, and then depend on that repo
|
Beta Was this translation helpful? Give feedback.
-
I find editable installs a critical feature. So I've made a test what happens if project in poetry-managed, but installed with How does it work and should I consider that supported? Is there any benefit of using that over pip + pyproject.toml? |
Beta Was this translation helpful? Give feedback.
-
I believe it's the beauty of using a standard, i.e. that the fact that both pip and poetry supports |
Beta Was this translation helpful? Give feedback.
-
@adam-grant-hendry I would clone down the matplotlib repo locally. Then I would depend on it (in editable mode) via the git clone https://github.com/matplotlib/matplotlib.git ../matplotlib [tool.poetry.dependencies]
matplotlib = {path = "../matplotlib", develop = true} Note: for matplotlib, you need to also install setuptool-scm, as that is required for building from source: poetry add --dev setuptools-scm After a |
Beta Was this translation helpful? Give feedback.
-
Beginning this discussion here to continue questions and answers regarding issue #34.
Beta Was this translation helpful? Give feedback.
All reactions