Skip to content

Installation

Benny Lutati edited this page Sep 1, 2021 · 8 revisions

Relaxed-Poetry provides a custom installer that will install relaxed-poetry isolated from the rest of your system.

☝️ The installed relaxed-poetry command name is rp, read about it here

osx / linux / bashonwindows install instructions

curl -sSL https://raw.githubusercontent.com/bennylut/relaxed-poetry/master/install-poetry.py | `which python3 || which python` -

windows powershell install instructions

(Invoke-WebRequest -Uri https://raw.githubusercontent.com/bennylut/relaxed-poetry/master/install-poetry.py -UseBasicParsing).Content | python -

Differences from poetry's original installer

The installer is mostly kept as in the original poetry with minor changes:

  • The created commandline is rp instead of poetry
  • The --preview flag was removed as it not make sense here
  • RP_HOME is the POETRY_HOME environment variable counterpart
  • Installation directory changed so to allow installation side by side with the original poetry.

Using relaxed-poetry with a pre-created poetry project

I plan to add a command to "relax" an existing poetry project, until then, to use relaxed-poetry with a precreated poetry project just install relaxed-poetry and change the build system section into:

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

You can now use the rp command with this project