Show More
@@ -2,6 +2,22 b'' | |||
|
2 | 2 | set -e |
|
3 | 3 | set -x |
|
4 | 4 | |
|
5 | cleanup() | |
|
6 | { | |
|
7 | echo "Removing venv $venv" | |
|
8 | rm -rf "$venv" | |
|
9 | } | |
|
10 | ||
|
11 | echo "Checking that you are NOT inside a virtualenv" | |
|
12 | [ -z "$VIRTUAL_ENV" ] | |
|
13 | ||
|
14 | venv=$(mktemp -d --tmpdir kallithea-release-XXXXX) | |
|
15 | trap cleanup EXIT | |
|
16 | ||
|
17 | echo "Setting up a fresh virtualenv in $venv" | |
|
18 | virtualenv -p python2 "$venv" | |
|
19 | . "$venv/bin/activate" | |
|
20 | ||
|
5 | 21 | echo "Install/verify tools needed for building and uploading stuff" |
|
6 | 22 | pip install --upgrade -e . |
|
7 | 23 | pip install --upgrade Sphinx Sphinx-PyPI-upload |
General Comments 0
You need to be logged in to leave comments.
Login now