craft-nft

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

prepare.sh (413B)


      1 #!/bin/bash
      2 
      3 venv=1
      4 if [ ! -d .venv ]; then
      5 	python3 -m venv .venv
      6 	if [ "$?" -ne "0" ]; then
      7 		>&2 echo "venv module doesn't seem to exiss"
      8 		venv=0
      9 	fi
     10 fi
     11 
     12 if [ "$venv" -eq "1" ]; then
     13 	. .venv/bin/activate
     14 	if [ "$?" -ne "0" ]; then
     15 		>&2 echo "virtualenv doesn't seem to exiss"
     16 		venv=0
     17 	fi
     18 fi
     19 
     20 pip install -r requirements.txt
     21 pip install -r test_requirements.txt
     22 
     23 if [ "$venv" -eq "1" ]; then
     24 	deactivate
     25 fi