mirror of
https://github.com/declaresub/pygments-xojo.git
synced 2026-05-15 14:15:53 -06:00
24 lines
No EOL
647 B
Bash
Executable file
24 lines
No EOL
647 B
Bash
Executable file
#! /bin/bash
|
|
|
|
|
|
# Creates virtual environments using the Python executables in $ENV_LIST. Existing
|
|
# environments are recreated.
|
|
|
|
ENV_LIST="python2.7 python3.4"
|
|
ENV_EXT="venv"
|
|
|
|
for ENV in $ENV_LIST;
|
|
do
|
|
ENV_DIR="$ENV.$ENV_EXT"
|
|
echo "Creating directory $ENV_DIR"
|
|
rm -rf "$ENV_DIR"
|
|
mkdir "$ENV_DIR"
|
|
echo "Initializing virtualenv."
|
|
virtualenv --python="$ENV" "$ENV_DIR"
|
|
source "$ENV_DIR/bin/activate"
|
|
echo "Installing this package."
|
|
pip install --process-dependency-links --editable .
|
|
echo "Installing additional packages from requirements.txt."
|
|
pip install -r requirements.txt
|
|
deactivate
|
|
done |