From 7be54fb52ff2edca25fe571d5238350b1ae1cbcf Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Wed, 16 Dec 2015 15:32:21 +0100 Subject: [PATCH] fix weird windows ssl issues --- build.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build.sh b/build.sh index ae4eb3d09..1fe9256a2 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,8 @@ #!/bin/bash -x set -e -if [[ $# < 3 ]]; then - echo "usage: $0 " +if [[ $# < 2 ]]; then + echo "usage: $0 []" exit fi @@ -13,16 +13,20 @@ fi # install pip install -U pip -python pip-date.py $2 pip setuptools wheel six + +if [ -n "${3+1}" ]; then + python pip-date.py $3 pip setuptools wheel six +fi + pip install -r requirements.txt -if [[ "$3" == "pip" ]]; then +if [[ "$2" == "pip" ]]; then python setup.py sdist; pip install dist/*; fi -if [[ "$3" == "setup-install" ]]; then +if [[ "$2" == "setup-install" ]]; then python setup.py install; fi -if [[ "$3" == "setup-develop" ]]; then +if [[ "$2" == "setup-develop" ]]; then python setup.py develop; pip install -e .; fi