commit | 1e4bfc9957841e138bb2a7b9c364485846d5e2ad | [log] [tgz] |
---|---|---|
author | Mykyta Karpin <mkarpin@mirantis.com> | Wed Nov 01 14:38:25 2017 +0200 |
committer | Mykyta Karpin <mkarpin@mirantis.com> | Thu Nov 02 08:49:37 2017 +0000 |
tree | ab4da173808fafbf9e92a4550e03e595b9c3ea19 | |
parent | 03203d64f7d60eed00abb24adaa468959a40a680 [diff] |
Fix virtual env creation In cases when virtualenv directory was corrupted by previous builds e.g. build was aborted in the middle of virtualenv creation after virtualenv cleanup, virtualenv directory may exist, but without all needed files for virtualenv operation. This commit removes directory check, and now each time even if directory exists virtualenv utility will setup env with pip and setuputils. Then pip and setuputils may be updated by lines [1]. [1] https://github.com/Mirantis/pipeline-library/blob/master/src/com/mirantis/mk/Python.groovy#L31-L35 Change-Id: I20d6cf2d682dc58afd72e4979623f28a43512c8a Related-Prod: https://mirantis.jira.com/browse/PROD-15677