File: setup_pyenv.sh

package info (click to toggle)
opm-simulators 2025.10%2Bds-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,584 kB
  • sloc: cpp: 193,035; sh: 1,807; python: 1,704; lisp: 1,108; makefile: 29; awk: 10
file content (15 lines) | stat: -rwxr-xr-x 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -eux

# This script is called from the Dockerfiles, e.g. docker/test_wheels/dockerfiles/.../Dockerfile
# It is used to install and setup pyenv

# NOTE: This variable is set in the Dockerfile so we do not need to set it here.
# export PYENV_ROOT=/root/.pyenv
: "${PYENV_ROOT:?}"

git clone https://github.com/pyenv/pyenv.git "$PYENV_ROOT"

echo 'export PYENV_ROOT="/root/.pyenv"' >> /root/.bashrc
echo 'export PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}"' >> /root/.bashrc
echo 'eval "$(pyenv init - bash)"' >> /root/.bashrc