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