Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion python/private/py_cc_toolchain_info.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@ PyCcToolchainInfo = provider(
:type: str

The runtime's ABI flags, i.e. `sys.abiflags` (e.g. 't' for free-threaded builds).

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
"abi_tag": """\
:type: str

The ABI tag for extension modules, e.g. 'cpython-311' or 'cpython-313t'.
The ABI tag for extension modules, equivalent to the `SOABI` sysconfig var
(see [PEP 3149](https://peps.python.org/pep-3149/)), e.g. 'cpython-311' or
'cpython-313t'.

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
"headers": """\
:type: struct
Expand Down Expand Up @@ -107,12 +115,18 @@ If available, information about C libraries, struct with fields:

The [PEP 508](https://peps.python.org/pep-0508/) `platform_machine` marker
value for the target architecture, e.g. 'x86_64', 'aarch64'.

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
"platform_tag": """\
:type: str | None

The PEP 3149 / PEP 425 platform tag for extension modules, e.g.
'x86_64-linux-gnu', 'darwin', or 'win_amd64'.

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
"python_version": """
:type: str
Expand All @@ -124,6 +138,9 @@ The Python Major.Minor version.

The [PEP 508](https://peps.python.org/pep-0508/) `sys_platform` marker value
for the target OS, e.g. 'linux', 'darwin', 'win32'.

:::{versionadded} 2.2.0
:::
""",
},
)
25 changes: 23 additions & 2 deletions python/private/py_cc_toolchain_rule.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,20 @@ The runtime's ABI flags, i.e. `sys.abiflags`.
If not set, or set to `<AUTO>`, the ABI flags are automatically derived
from `--//python/config_settings:py_freethreaded` (e.g., `'t'` when
free-threaded is enabled, or `''` otherwise).

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
),
"abi_tag": attr.string(
doc = "The ABI tag for extension modules, e.g. 'cpython-311'",
doc = """\
The ABI tag for extension modules, equivalent to the `SOABI` sysconfig var
(see [PEP 3149](https://peps.python.org/pep-3149/)), e.g. 'cpython-311' or
'cpython-313t'.

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
default = "",
),
"headers": attr.label(
Expand All @@ -171,7 +181,12 @@ attribute is available or not.
providers = [[SentinelInfo], [CcInfo]],
),
"libc": attr.string(
doc = "Target C library variant, e.g. 'glibc', 'musl'",
doc = """\
Target C library variant, e.g. 'glibc', 'musl'.

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
default = "",
),
"libs": attr.label(
Expand All @@ -182,6 +197,9 @@ attribute is available or not.
"platform_machine": attr.string(
doc = """
Target architecture as a PEP 508 `platform_machine` marker, e.g. 'x86_64', 'aarch64', 'x86_32'.

:::{versionadded} VERSION_NEXT_FEATURE
:::
""",
default = "",
),
Expand All @@ -192,6 +210,9 @@ Target architecture as a PEP 508 `platform_machine` marker, e.g. 'x86_64', 'aarc
"sys_platform": attr.string(
doc = """
Target OS as a PEP 508 `sys_platform` marker, e.g. 'linux', 'darwin', 'win32'.

:::{versionadded} 2.2.0
:::
""",
default = "",
),
Expand Down
12 changes: 6 additions & 6 deletions python/private/pypi/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,12 @@ bzl_library(
deps = ["//python/private:envsubst"],
)

bzl_library(
name = "index_sources",
srcs = ["index_sources.bzl"],
deps = [":hash"],
)

bzl_library(
name = "argparse",
srcs = ["argparse.bzl"],
Expand All @@ -542,12 +548,6 @@ bzl_library(
srcs = ["hash.bzl"],
)

bzl_library(
name = "index_sources",
srcs = ["index_sources.bzl"],
deps = [":hash"],
)

bzl_library(
name = "labels",
srcs = ["labels.bzl"],
Expand Down