bazel-contrib / bazel-contrib/rules_python

py_cc_toolchain should contain EXT_SUFFIX

オープン
#2,870 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Starlark
スター
688
フォーク
721
平均マージ
15時間 7分
マージ済み PR(30日)
76

説明

See https://github.com/bazelbuild/bazel-central-registry/pull/4539#discussion_r2080143661 for some context.

This value is needed to create python extensions. Note that there are a few different names that can be used, for example `.so`, `.abi3.so`, and `.cpython-312-x86_64-linux-gnu.so`. The latter is preferable when not using the python limited api because it prevents runfiles conflicts between python versions properly, meaning that transitions can work without completely breaking things.

I believe for autoconfigured pythons, you could obtain this value like so:

```
❯ python -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX"))'
.cpython-312-x86_64-linux-gnu.so
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with the py_cc_toolchain autoconfiguration path and review the linked bazel-central-registry discussion for context. Run the shown Python sysconfig command to inspect EXT_SUFFIX values; done means the toolchain exposes the appropriate suffix, including the full interpreter-specific form when available.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。