From f9344a792c7a71c35c53c91f97b4442a5a26cedc Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Tue, 16 Feb 2016 14:14:43 +0000 Subject: [PATCH] TinyIPA: Prevent install of pre-release dependencies We want to install the dev version of IPA but we don't want pre-release versions of IPA's dependencies, this patch ensures that only released deps are installed. Change-Id: I6187fbbd0bdd80503861d3760248f3f23c1c6388 --- imagebuild/tinyipa/build-tinyipa.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imagebuild/tinyipa/build-tinyipa.sh b/imagebuild/tinyipa/build-tinyipa.sh index b33d59c37..f63ea13f3 100755 --- a/imagebuild/tinyipa/build-tinyipa.sh +++ b/imagebuild/tinyipa/build-tinyipa.sh @@ -50,6 +50,7 @@ mkdir -p "$BUILDDIR/tmp/localpip" cd ../.. rm -rf *.egg-info python setup.py sdist --dist-dir "$BUILDDIR/tmp/localpip" --quiet +cp requirements.txt $BUILDDIR/tmp/ipa-requirements.txt cd $WORKDIR sudo cp /etc/resolv.conf $BUILDDIR/etc/resolv.conf @@ -70,7 +71,8 @@ $CHROOT_CMD python /tmp/get-pip.py $CHROOT_CMD pip install pbr $CHROOT_CMD pip wheel --wheel-dir /tmp/wheels setuptools $CHROOT_CMD pip wheel --wheel-dir /tmp/wheels pip -$CHROOT_CMD pip wheel --pre --wheel-dir /tmp/wheels --find-links=/tmp/localpip ironic-python-agent +$CHROOT_CMD pip wheel --wheel-dir /tmp/wheels -r /tmp/ipa-requirements.txt +$CHROOT_CMD pip wheel --no-index --pre --wheel-dir /tmp/wheels --find-links=/tmp/localpip --find-links=/tmp/wheels ironic-python-agent # Build tgt rm -rf $WORKDIR/build_files/tgt.tcz