Skip to content

Commit

Permalink
Add make install
Browse files Browse the repository at this point in the history
  • Loading branch information
panpilkarz authored and fredo committed May 15, 2023
1 parent 38b45e4 commit 03f99a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CONTRACTS = "contracts/**/*.sol"
DIFFLINT_PY_RE = "( M|A ) (beamer/|scripts/)"
DIFFLINT_SOL_RE = "( M|A ) contracts/.*sol"
IMAGE_NAME := beamer
ARCH := $(shell uname -m)

all: lint

Expand Down Expand Up @@ -82,3 +83,13 @@ clean:
rm -rf deployments/dist
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .mypy_cache -exec rm -rf {} +

install:
yarn install
poetry install
ifeq ($(ARCH),arm64)
$(eval ATOMICS := $(shell poetry export | grep -E 'atomics==' | awk '{print $$1}'))
$(eval VENV := $(shell poetry run poetry env info -p))
poetry run pip uninstall atomics -y
poetry run pip install $(ATOMICS) --platform=universal2 --no-deps --target $(VENV)/lib/python*/site-packages
endif

0 comments on commit 03f99a2

Please sign in to comment.