Skip to content

Commit

Permalink
docs: add temporary workaround for how to install plugins into the so…
Browse files Browse the repository at this point in the history
…mewhat broken preview of Poetry
  • Loading branch information
DavidVujic committed Feb 8, 2022
1 parent 9d52277 commit e3c3db9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ with functionality for adding custom Plugins. Have a look at the [official Poetr
### Install Poetry & plugins
With the latest `Poetry` version installed, you can add plugins.

__Update:__ I have learned that the preview of Poetry does not install plugins correctly.

This is a temporary workaround: install the plugins manually, like this (Mac OS X example):

``` shell
# Find out where the poetry preview is actually installed.
ls -l ~/.local/bin/poetry

# install the plugins to that path and the virtual environment within it, like this:
pip install poetry-multiproject-plugin --target "/Users/<YOUR USER NAME HERE>/Library/Application Support/pypoetry/venv/lib/python3.<YOUR PYTHON VERSION HERE>/site-packages"

pip install poetry-polylith-plugin --target "/Users/<YOUR USER NAME HERE>/Library/Application Support/pypoetry/venv/lib/python3.<YOUR PYTHON VERSION HERE>/site-packages"
```

When the temporart Hack above isn't necessary, this guide is the way to go.

Add the [Multiproject](https://github.com/DavidVujic/poetry-multiproject-plugin) plugin, that will enable the very important __workspace__ support to Poetry.
``` shell
poetry plugin add poetry-multiproject-plugin
Expand Down

0 comments on commit e3c3db9

Please sign in to comment.