bazel-contrib / bazel-contrib/rules_python
Allow using environment variables to set basic defaults for repos
未关闭
core-rules
type: feature request
type: toolchain
- 主要语言
- Starlark
- 星标
- 688
- 派生
- 721
- 平均合并
- 15 小时 7 分钟
- 30 天内合并 PR
- 76
描述
While looking at the JAX project, a somewhat convenient feature they have is setting an environment variable to override the URL and sha that is used.
This does seem like a pretty convenient and low-overhead way to quickly switch up the URL used if you're playing around with the toolchain. Much easier than figuring out the `python.single_version_platform_override()` apis. As an example, it would have made it easier to test the new python-build-standalone builds that changes the linking of tk/tcl libs.
贡献指南
调研方向
从 python.single_version_platform_override() APIs 以及 issue 中描述的 JAX 行为入手。确定环境变量应如何覆盖 repository URL 和 sha,包括它们的名称和优先级;完成的标准是用户无需使用 APIs 即可切换这些默认值。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 45/100