#!/bin/sh

set -o errexit

# With `pyenv` and its `pyenv-virtualenv` plugin installed, this script
# bootstraps a Python 3.7 development environment.

die() {
  echo $*
  exit 1
}

for p in pyenv; do
  command -v $p >/dev/null 2>&1 || { die "\`$p\` not found in PATH"; }
done

CONFIGURE_OPTS=--enable-shared pyenv install 3.7.10
pyenv virtualenv 3.7.10 pymanopt-3.7.10
pip install pip==21.3.1 setuptools==47.1.0 wheel==0.37.0
pip install -r requirements/base.txt -r requirements/dev.txt

#!/bin/sh

set -o errexit

# With `pyenv` and its `pyenv-virtualenv` plugin installed, this script
# bootstraps a Python 3.7 development environment.

die() {
  echo "$@"
  exit 1
}

for p in pyenv pyenv-virtualenv; do
  command -v $p >/dev/null 2>&1 || { die "\`$p\` not found in PATH"; }
done

PYTHON_VERSION="3.7.10"
NAME="pymanopt"
ENV_NAME="$NAME-$PYTHON_VERSION"

CONFIGURE_OPTS=--enable-shared pyenv install -s "$PYTHON_VERSION"
pyenv virtualenv -f "$PYTHON_VERSION" "$ENV_NAME"
pyenv local "$ENV_NAME"
pip install -r requirements/ci.txt
pip install -r requirements/base.txt -r requirements/dev.txt


Fix shellcheck warnings in bootstrap script
Fix shellcheck warnings in bootstrap script

Signed-off-by: Niklas Koep <342d5290239d9c5264c8f98185afedb99596601a@gmail.com>
