diff --git a/dev-tools/mage/pytest.go b/dev-tools/mage/pytest.go index 7f539080125..9c15e1f7e5f 100644 --- a/dev-tools/mage/pytest.go +++ b/dev-tools/mage/pytest.go @@ -229,6 +229,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