Merge "Allow requesting a list of extras to install"
This commit is contained in:
commit
91a2024d6d
@ -26,11 +26,17 @@ if [ -f /output/requirements.txt ] ; then
|
|||||||
pip install --cache-dir=/output/wheels -r /output/requirements.txt
|
pip install --cache-dir=/output/wheels -r /output/requirements.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add any requested extras to the list of things to install
|
||||||
|
EXTRAS=""
|
||||||
|
for extra in $* ; do
|
||||||
|
EXTRAS="${EXTRAS} -f /output/$extra/requirements.txt"
|
||||||
|
done
|
||||||
|
|
||||||
# Install the wheels. Use --force here because sibling wheels might
|
# Install the wheels. Use --force here because sibling wheels might
|
||||||
# be built with the same version number as the latest release, but we
|
# be built with the same version number as the latest release, but we
|
||||||
# really want the speculatively built wheels installed over any
|
# really want the speculatively built wheels installed over any
|
||||||
# automatic dependencies.
|
# automatic dependencies.
|
||||||
pip install --force --cache-dir=/output/wheels /output/wheels/*.whl
|
pip install --force --cache-dir=/output/wheels /output/wheels/*.whl $EXTRAS
|
||||||
|
|
||||||
# clean up after ourselves
|
# clean up after ourselves
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user