20846/21230: Modernize virtualenv setup in package building
authorBrett Smith <brett.smith@curii.com>
Thu, 4 Jan 2024 19:00:46 +0000 (14:00 -0500)
committerBrett Smith <brett.smith@curii.com>
Thu, 4 Jan 2024 19:22:14 +0000 (14:22 -0500)
commita8e7f58af3cc30b3bf4bcf1967bf00dab343543e
treed1e64e0840f5e27661fcb66b201ee3ca106b4d26
parentc11ae3f057030bf247be90a6cdec06847c889f13
20846/21230: Modernize virtualenv setup in package building

This change sets up the virtualenv earlier, then does all work inside
it, starting with installing build dependencies, to comply with PEP 668.

A couple optimizations that were easy to do as part of this work:

* We install modules in as few pip commands as possible, to reduce
  the overhead of determining what's currently installed, what's
  available from PyPI, etc.

* Removed a special case for CentOS 7 that we no longer need.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
build/run-library.sh