commit | 68f752e3fb141f520978ad86f3f0e155c3502a20 | [log] [tgz] |
---|---|---|
author | Richard Levasseur <rlevasseur@google.com> | Mon Jul 15 18:36:17 2024 -0700 |
committer | GitHub <noreply@github.com> | Tue Jul 16 01:36:17 2024 +0000 |
tree | cd7f3caa745d135e6d1d0d7d839edf9eccbac794 | |
parent | 7093d91e235c950fcf277749c0c1f5bcefab2482 [diff] |
fix: make mac zip builds work (#2052) 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 https://github.com/bazelbuild/rules_python/issues/2030
This repository is the home of the core Python rules -- py_library
, py_binary
, py_test
, py_proto_library
, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.