Compare commits

...

2 Commits

Author SHA1 Message Date
a1dfb3442a
travis2bash python options fix 2021-02-14 11:59:12 +01:00
829e05599a
Add US locale to bionic Dockerfile 2021-02-14 11:58:35 +01:00
2 changed files with 12 additions and 2 deletions

View File

@ -60,6 +60,10 @@ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
build-essential libcap-dev tor
# locales
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
language-pack-en
# cleanup
RUN rm -rf /var/lib/apt/lists/*

View File

@ -161,8 +161,10 @@ if [[ "$(declare -p travis_python)" =~ "declare -a" ]]; then
# strip quotes
temp="${pv%\"}"
pv="${temp#\"}"
# strip crap
options=$(echo "$pv"|cut -d_ -f2-)
if [ "$options" == "$pv" ]; then
unset options
fi
if [[ "$options" == with* ]]; then
options="--$(echo "$options"|cut -d_ -f2-|tr -- '_' '-')"
fi
@ -176,7 +178,11 @@ if [[ "$(declare -p travis_python)" =~ "declare -a" ]]; then
sudo apt -y install "python$pv" "python${pv}-dev"
#fi
virtualenv_init "$ppath" "$pv" "$options"
if [ -n "$options" ]; then
virtualenv_init "$ppath" "$pv" "$options"
else
virtualenv_init "$ppath" "$pv"
fi
virtualenv_activate "$pv"
python_run "$ppath" "$pv"
deactivate