Skip to content
This repository was archived by the owner on Dec 14, 2020. It is now read-only.

Commit b479974

Browse files
committed
Install virtualenv only if missing
1 parent 30f5055 commit b479974

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

experiments/acl2017.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ set -e
1111
# }
1212
mkdir -p hershcovich2017a
1313
cd hershcovich2017a
14-
pip install --user virtualenv
15-
python -m virtualenv --python=/usr/bin/python3 venv
16-
. venv/bin/activate # on bash
14+
if python -m virtualenv --version || pip install --user virtualenv; then
15+
python -m virtualenv --python=/usr/bin/python3 venv
16+
. venv/bin/activate # on bash
17+
fi
1718
pip install "tupa>=1.0,<1.1"
1819
git clone https://github.com/huji-nlp/ucca-corpora --branch v1.2
1920
mkdir -p models wiki-sentences 20k-sentences

experiments/acl2018.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ set -e
1111
# }
1212
mkdir -p hershcovich2018multitask
1313
cd hershcovich2018multitask
14-
pip install --user virtualenv
15-
python -m virtualenv --python=/usr/bin/python3 venv
16-
. venv/bin/activate # on bash
14+
if python -m virtualenv --version || pip install --user virtualenv; then
15+
python -m virtualenv --python=/usr/bin/python3 venv
16+
. venv/bin/activate # on bash
17+
fi
1718
pip install "tupa==1.3.2"
1819
git clone https://github.com/huji-nlp/ucca-corpora --branch v1.2
1920
mkdir -p models wiki-sentences 20k{,-fr,-de}-sentences

0 commit comments

Comments
 (0)