commit | 4f97f1a4fcb86410e078c020397a139b1912a31b | [log] [tgz] |
---|---|---|
author | Nicholas Junge <nicholas.junge@web.de> | Wed Aug 14 21:32:01 2024 +0200 |
committer | GitHub <noreply@github.com> | Wed Aug 14 19:32:01 2024 +0000 |
tree | d9ada82e33376bcf8ce5609b559a9350adb99413 | |
parent | 5d2782970cef1b2b2cae9a82620ad7a1f3d27782 [diff] |
fix: Fix up search path of bootstrapped Python toolchain dylib (#2089) Previously, `//tests/cc/current_py_cc_libs::python_libs_linking_test` failed on macOS because the bootstrapped toolchain's dylib had an incorrect LC_ID_DYLIB field set, pointing to a local directory on the Python standalone build host machine. To fix, add a small conditional to the Python repository rule patching the LC_ID_DYLIB field of the bootstrapped Python's dylib with its fully qualified file system path. Patching is carried out with macOS's own `install_name_tool`, which is part of the standard macOS dynamic linking toolchain. Qualifies the mentioned test as executable on Mac, now only Windows linker errors are left to fix.
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.