Skip to content
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

Provide standalone poetry binary #3360

Closed
2 tasks done
abergmeier opened this issue Nov 12, 2020 · 6 comments
Closed
2 tasks done

Provide standalone poetry binary #3360

abergmeier opened this issue Nov 12, 2020 · 6 comments
Labels
kind/feature Feature requests/implementations

Comments

@abergmeier
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Especially for Windows, installing Python is not as immediate as for Linux.
Thus I wonder whether it would make sense to package poetry in an executable and also add a working Python runtime, so that you can use poetry on a fresh system.
Bonus points for statically compiling a libc.

@abergmeier abergmeier added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Nov 12, 2020
@gragib
Copy link

gragib commented Nov 15, 2020

I second this. My current workaround is to

pipx install poetry

@gi0baro
Copy link

gi0baro commented Sep 15, 2021

FYI, I'm doing this @ https://github.com/gi0baro/poetry-bin

I'm not sure how much the community and maintainers are interested into this. Technically speaking, I made some patches even on poetry and poetry-core dependencies, then even if community express its interest, it would probably require a new battery of tests to validate accurately also the patches.

br3ndonland added a commit to br3ndonland/dotfiles that referenced this issue Oct 19, 2021
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.
@Secrus
Copy link
Member

Secrus commented Sep 8, 2022

The Poetry team decided against maintaining any package format other than Python wheels. Providing binaries for multiple OS/distros would require a lot of time put into maintaining such packages and we are stretched thin as it is.

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale Sep 8, 2022
@gi0baro
Copy link

gi0baro commented Sep 8, 2022

For those interested reaching this, the poetry-bin project is all about this and maintained.

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Sep 18, 2022
@hemnstill
Copy link

I have also build standalone version for windows and linux (on musl toolset)

Its working without any patches

https://github.com/hemnstill/StandaloneTools/releases?q=poetry

Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

6 participants