Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Discuss how the venv layout could facilitate entry points

未关闭
#3,747 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
python
领域
build-system

调研方向

首先阅读讨论中提到的 py_console_script_binary、py_binary 以及 entrypoints/scripts/things-in-bin 相关引用。跟踪当前完整的 runfiles 树和独立 venv 的使用方式,然后明确同一 venv 中脚本所需的 provider 和 consumer 行为。完成的标准是:记录这些用例,以及一套经过 соглас соглас? 通过 py_binary 使这些入口点可用的共识设计。

由索引模型根据 Issue 内容生成。

描述

Currently the py_console_script_binary is building a full runfiles tree and for the usecase that you are implementing in here - a py_binary is just calling utilities within the same venv that is a little bit too heavy. I want to separate the usecases for py_console_script_binary to be only something where we actually want to build a full separate venv for the said scripts.

Ah, I think I get what you mean. Do you want to file an issue for further discussion? entrypoints/scripts/things-in-bin seem distinct enough they warrant something in a provider, but it's not clear to me how a consumer can make effective use of it via a py_binary.

Originally posted by @rickeylev in https://github.com/bazel-contrib/rules_python/issues/3743#issuecomment-4345478121

主要语言
Starlark
星标
690
派生
722
平均合并
1 天 55 分钟
30 天内合并 PR
38

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bazel-contrib/rules_python 的其他 Issue

查看 bazel-contrib/rules_python 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。