Centralize python packages installation adding "install-python-packages" script

This commit is contained in:
Jean-Christophe Fillion-Robin
2018-06-06 20:58:31 -04:00
parent 6cdf33f46f
commit 2b93dd5412
2 changed files with 30 additions and 10 deletions

View File

@ -0,0 +1,27 @@
#!/bin/bash
set -e
set -o pipefail
PYTHON=python
while [ $# -gt 0 ]; do
case "$1" in
-python)
PYTHON=$2
shift
;;
*)
echo "Usage: Usage: ${0##*/} [-python /path/to/bin/python]"
exit 1
;;
esac
shift
done
cd /tmp
curl -# -LO https://bootstrap.pypa.io/get-pip.py
${PYTHON} get-pip.py --ignore-installed
rm get-pip.py
${PYTHON} -m pip install --ignore-installed conan