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

fix: make mac zip builds work #2052

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

rickeylev
Copy link
Collaborator

@rickeylev rickeylev commented Jul 10, 2024

Macs have an older version of mktemp, one that doesn't support the --suffix arg. This
caused the combination of Macs and --build_python_zip --bootstrap_impl=script to fail.

To fix, remove the --suffix arg. As far as I can tell, the suffix string,
"Bazel.runfiles_", is just informational, so this is fine to remove.

Also adds tests to verify that a binary runs with/without zip and for the script
bootstrap.

Fixes #2030

@rickeylev rickeylev force-pushed the bootstrap.script.default branch 7 times, most recently from 8559372 to ab59868 Compare July 12, 2024 21:32
@rickeylev rickeylev changed the title wip: checking ci with bootstrap=script by default fix: make mac zip builds work Jul 12, 2024
@rickeylev rickeylev force-pushed the bootstrap.script.default branch 3 times, most recently from c2eb91c to ef89231 Compare July 12, 2024 21:55
@rickeylev rickeylev marked this pull request as ready for review July 12, 2024 21:56
@rickeylev rickeylev requested a review from aignas as a code owner July 12, 2024 21:56
@rickeylev rickeylev force-pushed the bootstrap.script.default branch 2 times, most recently from 96fc926 to f2e833a Compare July 12, 2024 22:02
@rickeylev rickeylev added this pull request to the merge queue Jul 16, 2024
Merged via the queue into bazelbuild:main with commit 68f752e Jul 16, 2024
4 checks passed
@rickeylev rickeylev deleted the bootstrap.script.default branch July 17, 2024 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python zip built with bootstrap_impl=script not runnable on macOS
2 participants