From 1f243fdf9b9e898d38c40e34e400cb05189533e7 Mon Sep 17 00:00:00 2001 From: cachedout Date: Mon, 8 Jun 2020 18:50:47 +0000 Subject: [PATCH] Fix bdist during installation of Python requirements (#18745) * Fix bdist/wheel errors on build * Use independent args * Formatting * Remove -r * Collapse into single line * Update dev-tools/mage/pytest.go Co-authored-by: Andrew Kroh Co-authored-by: Andrew Kroh --- dev-tools/mage/pytest.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-tools/mage/pytest.go b/dev-tools/mage/pytest.go index 539fc8b3f1b..4cb330f7a5d 100644 --- a/dev-tools/mage/pytest.go +++ b/dev-tools/mage/pytest.go @@ -210,6 +210,11 @@ func PythonVirtualenv() (string, error) { args = append(args, "-Ur", req) } + // First ensure that wheel is installed so that bdists build cleanly. + if err = sh.RunWith(env, pip, "install", "-U", "wheel"); err != nil { + return "", err + } + // Execute pip to install the dependencies. if err := sh.RunWith(env, pip, args...); err != nil { return "", err