| load("//python/private:interpreter.bzl", _interpreter_binary = "interpreter_binary") |
| |
| filegroup( |
| name = "distribution", |
| srcs = glob(["**"]), |
| visibility = ["//:__subpackages__"], |
| ) |
| |
| _interpreter_binary( |
| name = "python", |
| binary = ":python_src", |
| target_compatible_with = select({ |
| "@platforms//os:windows": ["@platforms//:incompatible"], |
| "//conditions:default": [], |
| }), |
| visibility = ["//visibility:public"], |
| ) |
| |
| # The user can modify this flag to source different interpreters for the |
| # `python` target above. |
| label_flag( |
| name = "python_src", |
| build_setting_default = "//python:none", |
| ) |