The lock_import extension.
pycross = use_extension("@rules_pycross//pycross/extensions:pycross.bzl", "pycross") pycross.configure_environments(glibc_version, macos_version, platforms, python_versions) pycross.configure_interpreter(python_defs_file, python_interpreter_target) pycross.configure_toolchains(register_toolchains)
Configure rules_pycross.
TAG CLASSES
Attributes
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
glibc_version | The maximum glibc version to accept for Bazel platforms that match the @platforms//os:linux constraint. Must be in the format '2.X', and greater than 2.5. All versions from 2.5 through this version will be supported. For example, if this value is set to 2.15, wheels tagged manylinux_2_5, manylinux_2_6, ..., manylinux_2_15 will be accepted. Defaults to '2.28' if unspecified. | String | optional | "" |
macos_version | The maximum macOS version to accept for Bazel platforms that match the @platforms//os:osx constraint. Must be in the format 'X.Y' with X >= 10. All versions from 10.4 through this version will be supported. For example, if this value is set to 12.0, wheels tagged macosx_10_4, macosx_10_5, ..., macosx_11_0, macosx_12_0 will be accepted. Defaults to '12.0' if unspecified. | String | optional | "" |
platforms | The list of Python platforms to support in by default in Pycross builds. See https://github.com/bazelbuild/rules_python/blob/main/python/versions.bzl for the list of supported platforms per Python version. By default all supported platforms for each registered version are supported. | List of strings | optional | [] |
python_versions | The list of Python versions to support in by default in Pycross builds. These strings will be X.Y or X.Y.Z depending on how versions were registered with rules_python. By default all registered versions are supported. | List of strings | optional | [] |
Attributes
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
python_defs_file | A label to a .bzl file that provides py_binary and py_test. | Label | optional | None |
python_interpreter_target | The label to a python executable to use for invoking internal tools. | Label | optional | None |
Attributes
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
register_toolchains | Register toolchains for all rules_python-registered interpreters. | Boolean | optional | True |