Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #18745 to 7.x: Fix bdist during installation of Python requirements #19905

Merged
merged 1 commit into from
Jul 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dev-tools/mage/pytest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down