Skip to content

Commit 4ce7231

Browse files
chore(release): sync changelog for v2.4.0 backports (bazel-contrib#4190)
Updates CHANGELOG.md and removes news files for backports: - bazel-contrib#4165 Work towards bazel-contrib#4175 Release-Tracking-Issue: bazel-contrib#4175 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9d36652 commit 4ce7231

4 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ changelog](https://rules-python.readthedocs.io/en/latest/changelog.html).
4747
in {obj}`python.defaults`, {obj}`python_register_toolchains`, and
4848
{obj}`python_register_multi_toolchains`
4949
([#4023](https://github.com/bazel-contrib/rules_python/pull/4023)).
50+
* (toolchains) Shared `libpython*.so*` files are now excluded by default from
51+
hermetic Python runtime files for recognized Astral `python-build-standalone`
52+
builds (`20250517` and newer), which statically link `libpython` into the
53+
interpreter. Older, custom, or unrecognized runtimes retain them. Set
54+
`libpython = "include"` or `"exclude"` on {obj}`python.override`,
55+
{obj}`python.single_version_override`,
56+
{obj}`python.single_version_platform_override`, or
57+
{obj}`python_register_toolchains` to override this behavior
58+
([#4165](https://github.com/bazel-contrib/rules_python/pull/4165)).
5059

5160
{#v2-4-0-fixed}
5261
### Fixed
@@ -81,6 +90,10 @@ changelog](https://rules-python.readthedocs.io/en/latest/changelog.html).
8190
* (toolchain) Fixed a crash on Windows when precompiling is enabled:
8291
the precompiler's interpreter couldn't find its DLLs once relocated
8392
([#4082](https://github.com/bazel-contrib/rules_python/issues/4082)).
93+
* (zipapp) Reduced self-contained archive sizes by preserving Python executable
94+
symlinks instead of storing each alias as another copy of the interpreter, and
95+
by omitting shared `libpython` files from recognized statically linked Astral
96+
runtime builds.
8497

8598
{#v2-4-0-added}
8699
### Added
@@ -91,6 +104,7 @@ changelog](https://rules-python.readthedocs.io/en/latest/changelog.html).
91104
package directory, set it to `None` or `""` to set it to the root of the repo
92105
([#4029](https://github.com/bazel-contrib/rules_python/issues/4029)).
93106

107+
94108
{#v2-3-4}
95109
## [2.3.4] - 2026-09-21
96110

‎news/4165.changed.md‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎news/py-zipapp-size.fixed.md‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎python/private/python.bzl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ Valid values are `auto`, `include`, and `exclude`. With `auto`, recognized
13611361
Astral Python Standalone builds from 20250517 onward exclude the shared
13621362
libraries; other runtimes retain them.
13631363
1364-
:::{versionadded} VERSION_NEXT_PATCH
1364+
:::{versionadded} 2.4.0
13651365
:::
13661366
""",
13671367
values = ["auto", "include", "exclude"],
@@ -1450,7 +1450,7 @@ Valid values are `auto`, `include`, and `exclude`. With `auto`, recognized
14501450
Astral Python Standalone builds from 20250517 onward exclude the shared
14511451
libraries; other runtimes retain them.
14521452
1453-
:::{versionadded} VERSION_NEXT_PATCH
1453+
:::{versionadded} 2.4.0
14541454
:::
14551455
""",
14561456
values = ["auto", "include", "exclude"],
@@ -1532,7 +1532,7 @@ Valid values are `auto`, `include`, and `exclude`. With `auto`, recognized
15321532
Astral Python Standalone builds from 20250517 onward exclude the shared
15331533
libraries; other runtimes retain them.
15341534
1535-
:::{versionadded} VERSION_NEXT_PATCH
1535+
:::{versionadded} 2.4.0
15361536
:::
15371537
""",
15381538
values = ["auto", "include", "exclude"],

0 commit comments

Comments
 (0)