-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brew install poetry #941
Comments
Might be tricky as poetry is linked to a Python version |
Couldn't the formula do whatever the recommended install script does now? |
If someone wants to tackle this, they are welcome to do it but that's beyond the responsibilities of the Poetry's maintainers. |
I think offering a brew installation would make poetry much more useful to many developers. Yes, it's not a responsibility of the poetry maintainer but it would be super sweet if updates were available on brew without too much delay. |
linking this here: Homebrew/homebrew-core#41055 |
1d8eee0 884d475 Poetry has a new install script, install-poetry.py, which alters the requirements for adding Poetry to `$PATH`. `$HOME/.local/bin` was already on `$PATH` for pipx, so it seemed like a good option. Commits 1d8eee0 and 884d475 updated `.zshrc` and `script/strap-after-setup` for install-poetry.py and `POETRY_HOME=$HOME/.local`. This made sense initially, because Poetry installs its binaries into `$POETRY_HOME/bin`, and because Poetry doesn't have a `$POETRY_BIN_DIR` configuration variable like pipx does (`$PIPX_BIN_DIR`). Unfortunately, `POETRY_HOME=$HOME/.local` ended up being problematic, because Poetry takes over `$POETRY_HOME`, and doesn't consider other applications installed there. For example, if the get-poetry.py or install-poetry.py scripts were used to install Poetry, they can also be used to uninstall Poetry. Uninstalling with `python install-poetry.py --uninstall` or `python get-poetry.py --uninstall` deletes the entire `$POETRY_HOME` directory, which means it deletes `$HOME/.local`, causing problems for other applications that use `$HOME/.local` (python-poetry/poetry#4625). There have been many other issues with the Poetry custom install scripts get-poetry.py and install-poetry.py (br3ndonland/inboard#36), so other installation methods are be welcome. Poetry is now available through Homebrew, but Homebrew installation is not supported by the Poetry maintainers. Homebrew installation also requires its own custom install script, which creates its own issues. python-poetry/poetry#941 python-poetry/poetry#1765 Homebrew/homebrew-core#48883 Homebrew/homebrew-core#86776 pipx (https://pypa.github.io/pipx/) can also be used to install Poetry. The pipx installation method is suggested in the Poetry docs and GitHub, and pipx is already in use in this repo. python-poetry/poetry#677 python-poetry/poetry#3360 This commit will remove `export POETRY_HOME=$HOME/.local` from `.zshrc`, and will install Poetry with pipx.
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. |
Publish poetry on Homebrew;
Update docs to include macOS:
brew install poetry
The text was updated successfully, but these errors were encountered: