craft-nft

A standalone NFT implementation for real-world arts and crafts assets
Log | Files | Refs | README

commit f38f22c551e247e2d7c9c8e6894cf9addf324aec
parent 02f20d9bf5b637b8fe3de122029289072e1c67a3
Author: lash <dev@holbrook.no>
Date:   Fri, 23 Dec 2022 06:23:10 +0000

Use better supported virtualenv init command

Diffstat:
Mpython/prepare.sh | 20+++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/python/prepare.sh b/python/prepare.sh @@ -1,19 +1,25 @@ #!/bin/bash +venv=1 if [ ! -d .venv ]; then - virtualenv .venv + python3 -m venv .venv + if [ $? -ne "0" ]; then + >&2 echo "venv module doesn't seem to exiss" + venv=0 + fi fi -venv=1 -. .venv/bin/activate -if [ $? -ne "0" ]; then - >&2 echo "virtualenv doesn't seem to exiss" - venv=0 +if [ $venv -eq 1 ]; then + . .venv/bin/activate + if [ $? -ne "0" ]; then + >&2 echo "virtualenv doesn't seem to exiss" + venv=0 + fi fi pip install -r requirements.txt pip install -r test_requirements.txt -if [ $venv == "1" ]; then +if [ $venv -eq "1" ]; then deactivate fi