7451: Improve virtualenv setup in run-tests.sh.
authorBrett Smith <brett@curoverse.com>
Mon, 5 Oct 2015 16:53:42 +0000 (12:53 -0400)
committerBrett Smith <brett@curoverse.com>
Mon, 5 Oct 2015 17:13:43 +0000 (13:13 -0400)
commit182891aa10947a1238195a8565c051efd1dd5480
tree60eb383c7e4269738dc59ce1b287203e85d22212
parentfec33dcaf67cb752c669915bb49dead9b8f11e4f
7451: Improve virtualenv setup in run-tests.sh.

The code to build the Python 3 virtualenv didn't check to see whether
the virtualenv already existed first.  When reusing a Python 3
virtualenv, pip would get downgraded and start failing.

Refactor the virtualenv setup code to avoid this duplication and these
sorts of bugs.

While I was at it: rather than trying to parse package versions
ourselves to figure out when to upgrade setuptools and pip, just tell
pip the versions we want.  'pip>=7' is an approximation of what we're
currently doing.  The main thing we care about is that we get a
version new enough to work with setuptools 18.
jenkins/run-tests.sh