bazelbuild / rules_python

Bazel Python Rules
https://rules-python.readthedocs.io
Apache License 2.0
538 stars 542 forks source link

feat: add attrs/fields for the runtime's ABI flags #2390

Closed rickeylev closed 2 weeks ago

rickeylev commented 2 weeks ago

This adds attributes and fields for storing the runtimes ABI flags value, i.e. sys.abiflags.

For freethreaded interpreters, the abi flags contain t, which is used creating e.g. virtualenvs.

The attribute can be directly specified, or if it's not, will be computed based on the --py_freethreaded flag.