Directly install requirements with pip
Rather than parsing then feeding the pip requirements file to pip,
just have pip consume it directly.
Change-Id: I17bbe4324e6957c7165bc0f340ddae1e51039471
diff --git a/functions b/functions
index 06d7e7b..fa0e724 100644
--- a/functions
+++ b/functions
@@ -1087,12 +1087,13 @@
else
SUDO_CMD="sudo"
fi
+ for reqs_file in $1/requirements.txt $1/tools/pip-requires ; do
+ if [ -f $reqs_file ] ; then
+ pip_install -r $reqs_file
+ fi
+ done
(cd $1; \
python setup.py egg_info; \
- raw_links=$(awk '/^.+/ {print "-f " $1}' *.egg-info/dependency_links.txt); \
- depend_links=$(echo $raw_links | xargs); \
- require_file=$([ ! -r *-info/requires.txt ] || echo "-r *-info/requires.txt"); \
- pip_install $require_file $depend_links; \
$SUDO_CMD \
HTTP_PROXY=$http_proxy \
HTTPS_PROXY=$https_proxy \