Skip to content
Myr

install

This file

Path

scripts/install

24 lines · 775 bytes

Last changed by

Not known.

History of this file

Take it

StuffTom Christiebefore adoption30530d4

lines 1–24why, one step back
1#!/bin/sh -e
23# Use the Python executable provided from the `-p` option, or a default.4[[ $1 = "-p" ]] && PYTHON=$2 || PYTHON="python3"56MIN_VERSION="(3, 6)"7VERSION_OK=`"$PYTHON" -c "import sys; print(sys.version_info[0:2] >= $MIN_VERSION and '1' or '');"`89if [[ -z "$VERSION_OK" ]] ; then10 PYTHON_VERSION=`"$PYTHON" -c "import sys; print('%s.%s' % sys.version_info[0:2]);"`11 DISP_MIN_VERSION=`"$PYTHON" -c "print('%s.%s' % $MIN_VERSION)"`12 echo "ERROR: Python $PYTHON_VERSION detected, but $DISP_MIN_VERSION+ is required."13 echo "Please upgrade your Python distribution to install Databases."14 exit 115fi1617REQUIREMENTS="requirements.txt"18VENV="venv"19PIP="$VENV/bin/pip"2021set -x22"$PYTHON" -m venv "$VENV"23"$PIP" install -r "$REQUIREMENTS"24"$PIP" install -e .