comparison scripts/validate-minimum-dependency-versions @ 8193:89e9aef9b983

py3: use "python3 -m venv" instead of virtualenv package
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 03 Feb 2020 16:30:08 +0100
parents aa6f17a53b49
children 01aca0a4f876
comparison
equal deleted inserted replaced
8192:b7caa806cf6e 8193:89e9aef9b983
26 # finding all >= requirements and dumping into a custom requirements.txt 26 # finding all >= requirements and dumping into a custom requirements.txt
27 # while fixating the requirement at the lower bound. 27 # while fixating the requirement at the lower bound.
28 sed -n 's/.*"\(.*\)>=\(.*\)".*/\1==\2/p' setup.py > "$min_requirements" 28 sed -n 's/.*"\(.*\)>=\(.*\)".*/\1==\2/p' setup.py > "$min_requirements"
29 sed 's/>=/==/p' dev_requirements.txt >> "$min_requirements" 29 sed 's/>=/==/p' dev_requirements.txt >> "$min_requirements"
30 30
31 virtualenv -p "$(command -v python3)" "$venv" 31 python3 -m venv "$venv"
32 source "$venv/bin/activate" 32 source "$venv/bin/activate"
33 pip install --upgrade pip setuptools 33 pip install --upgrade pip setuptools
34 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2) 34 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2)
35 35
36 # Strip out the known Python 2.7 deprecation message. 36 # Strip out the known Python 2.7 deprecation message.