Delete constraints and requirements files on build fail
If the installation of Python packages fails for any reason, the
constraint and requirements file is already written and therefore
unless you delete the virtualenv, it would not rebuild things
again.
This patch will handle failure and delete those files, then provide
a warning for the user upon failing to inspect the needed file.
Closes-Bug: #1824189
Change-Id: I67db44ce10250908f23c26c90d271a780a875eb6
(cherry picked from commit b2abfe4bad7e7b440e79b048461cfbfda2b06757)
Reviewed: https:/ /review. openstack. org/652161 /git.openstack. org/cgit/ openstack/ ansible- role-python_ venv_build/ commit/ ?id=ed1e9410381 64649e79bca7e57 c9e1d37a8fcfbe
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit ed1e94103816464 9e79bca7e57c9e1 d37a8fcfbe
Author: Mohammed Naser <email address hidden>
Date: Wed Apr 10 12:18:45 2019 -0400
Delete constraints and requirements files on build fail
If the installation of Python packages fails for any reason, the
constraint and requirements file is already written and therefore
unless you delete the virtualenv, it would not rebuild things
again.
This patch will handle failure and delete those files, then provide
a warning for the user upon failing to inspect the needed file.
Closes-Bug: #1824189
Change-Id: I67db44ce102509 08f23c26c90d271 a780a875eb6 40e79b048461cfb fda2b06757)
(cherry picked from commit b2abfe4bad7e7b4