diff options
author | Florian Dold <florian@dold.me> | 2023-02-23 23:24:06 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-23 23:24:20 +0100 |
commit | 245e2ae15c1f770bf6e8953fe951795a9d2461ea (patch) | |
tree | ce21a2821ba22b64216d3cfc3a261f1bfb79db05 /Makefile | |
parent | 8a66f6c11d5cb2c23be3fe263a5e9b85f5df8da0 (diff) | |
download | taler-merchant-demos-245e2ae15c1f770bf6e8953fe951795a9d2461ea.tar.gz taler-merchant-demos-245e2ae15c1f770bf6e8953fe951795a9d2461ea.tar.bz2 taler-merchant-demos-245e2ae15c1f770bf6e8953fe951795a9d2461ea.zip |
use venv for installationv0.9.2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -1,5 +1,5 @@ install_global=false --include config.mk +-include .config.mk version := $(shell poetry version | awk '{ print $$2 }') @@ -10,12 +10,6 @@ all: .PHONY: install -ifeq ($(install_global), true) -install: install-global -else -install: install-local -endif - setup-arch: # TODO: We should probabally add some form of "ignore me if already completed" set -e @@ -56,15 +50,15 @@ setup-deb: pip install poetry echo "Done!" -.PHONY: install-global -install-global: compile - poetry build -f wheel - pip3 install --upgrade --ignore-installed "dist/talermerchantdemos-$(version)-py3-none-any.whl" +my_venv = $(prefix)/lib/taler-merchant-demos/venv -.PHONY: install-local -install-local: compile +.PHONY: install +install: compile + mkdir -p $(prefix)/bin poetry build -f wheel - pip3 install --upgrade --ignore-installed --user "dist/talermerchantdemos-$(version)-py3-none-any.whl" + python3 -m venv $(my_venv) + $(my_venv)/bin/pip3 install --upgrade --ignore-installed "dist/talermerchantdemos-$(version)-py3-none-any.whl" + ln -sf $(my_venv)/bin/taler-merchant-demos $(prefix)/bin/taler-merchant-demos # run testcases .PHONY: check |