summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3047d20..faca678 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
install_global=false
-include config.mk
+version := $(shell poetry version | awk '{ print $$2 }')
+
.PHONY: all
all:
@echo "This is a python project, no compilation required"
@@ -16,11 +18,13 @@ endif
.PHONY: install-global
install-global: compile
- pip3 install .
+ poetry build -f wheel
+ pip3 install --upgrade --ignore-installed "dist/talermerchantdemos-$(version)-py3-none-any.whl"
.PHONY: install-local
install-local: compile
- pip3 install . --user
+ poetry build -f wheel
+ pip3 install --upgrade --ignore-installed --user "dist/talermerchantdemos-$(version)-py3-none-any.whl"
# run testcases
.PHONY: check