poetry icon indicating copy to clipboard operation
poetry copied to clipboard

poetry install --develop does not install scripts in venv/bin

Open jbarlow83 opened this issue 8 years ago • 5 comments

  • [x] I am on the latest Poetry version.

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.

  • OS version and name: macOS High Sierra

  • Poetry version: 0.11.2

  • Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/jbarlow83/8e3cd45139e5ba60ebcb0d218371fa17

Issue

When a package specifies a script and the package is installed in develop mode, the script should be placed in the virtualenv's bin directory, as pip install -e . would do. poetry install --develop <package> does not install scripts.

jbarlow83 avatar Jul 05 '18 21:07 jbarlow83

Does poetry develop do what you want? I had a similar issue in #311 and it turned out I just needed to use that command instead of poetry install --develop.

nchammas avatar Jul 29 '18 00:07 nchammas

I'm not sure why this was closed? I'm running into the same issue and don't see an answer to how to get poetry to install scripts.

jonchu avatar Oct 18 '19 23:10 jonchu

If you have a package with the same name as your poetry project then poetry will install the scripts with poetry install

[tool.poetry]
name = "my-package"
version = "0.1.0"
description = "My package"
my-package
├── my_package
│   ├── __init__.py

andymeierdev avatar Sep 09 '20 14:09 andymeierdev

Just confirming that this behavior persists.

braincore avatar Mar 02 '21 22:03 braincore

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[bot] avatar Mar 02 '24 21:03 github-actions[bot]