Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup script #1506

Merged
merged 4 commits into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions baselines/dev/setup-defaults.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
set -e

if [ ! -d $HOME/.pyenv ]
then
# Install pyenv with the virtualenv plugin
curl https://pyenv.run | bash

# To add the config to the right file (depends on the shell used)
rcfile=$HOME/.$(basename $SHELL)rc

# Add pyenv to $PATH
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> $rcfile

# Init pyenv with the shell
echo 'eval "$(pyenv init -)"' >> $rcfile
echo 'eval "$(pyenv virtualenv-init -)"' >> $rcfile
source $rcfile
else
# If pyenv is already installed, check for a newer version
pyenv update
charlesbvll marked this conversation as resolved.
Show resolved Hide resolved
fi
charlesbvll marked this conversation as resolved.
Show resolved Hide resolved

# Create the virtual environment for Flower baselines
$( dirname "${BASH_SOURCE[0]}" )/venv-create.sh

# Install the dependencies inside the virtual environment
$( dirname "${BASH_SOURCE[0]}" )/bootstrap.sh
28 changes: 28 additions & 0 deletions dev/setup-defaults.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
set -e

if [ ! -d $HOME/.pyenv ]
then
# Install pyenv with the virtualenv plugin
curl https://pyenv.run | bash

# To add the config to the right file (depends on the shell used)
rcfile=$HOME/.$(basename $SHELL)rc

# Add pyenv to $PATH
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> $rcfile

# Init pyenv with the shell
echo 'eval "$(pyenv init -)"' >> $rcfile
echo 'eval "$(pyenv virtualenv-init -)"' >> $rcfile
source $rcfile
else
# If pyenv is already installed, check for a newer version
pyenv update
fi

# Create the virtual environment for Flower
$( dirname "${BASH_SOURCE[0]}" )/venv-create.sh

# Install the dependencies inside the virtual environment
$( dirname "${BASH_SOURCE[0]}" )/bootstrap.sh