Skip to content

Instantly share code, notes, and snippets.

@bmritz
Created May 12, 2023 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmritz/29928472686508858950b3af7d70ebd4 to your computer and use it in GitHub Desktop.
Save bmritz/29928472686508858950b3af7d70ebd4 to your computer and use it in GitHub Desktop.
REQUIRED := python3.11 curl
$(foreach bin,$(REQUIRED),\
$(if $(shell command -v $(bin) 2> /dev/null),,$(error Please install `$(bin)`)))
REPOSITORY_ROOT := $(PWD)
.poetry/bin/poetry: ## install poetry
@curl -sSL https://install.python-poetry.org | POETRY_HOME=$(REPOSITORY_ROOT)/$(shell basename $(dir $(abspath $(dir $(@))))) python3.11 - --version=1.4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment