astral-sh / astral-sh/python-build-standalone

Upstream patch `patch-always-build-python-for-freeze.patch`

Open
#866 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.4k
Forks
314
Avg merge
1d 9h
Merged PRs (30d)
27

Description

[`patch-always-build-python-for-freeze.patch`](https://github.com/astral-sh/python-build-standalone/blob/main/cpython-unix/patch-always-build-python-for-freeze.patch)

Python 3.11+ supports using a provided Python during bootstrapping (e.g. freezing), but only uses it when cross-compiling.

This patch forces always using the provided Python, even when not cross-compiling. This ensures consistent build behavior regardless of cross-compilation status.

Contributor guide

Open the contributing guide

Research direction

Start with cpython-unix/patch-always-build-python-for-freeze.patch and review how Python 3.11+ uses a provided Python during bootstrapping and freezing. Verify that the patch makes this behavior apply both when cross-compiling and when building normally, with consistent results in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.