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

Upstream patch `patch-ctypes-callproc.patch`

Open
#872 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-ctypes-callproc.patch`](https://github.com/astral-sh/python-build-standalone/blob/main/cpython-unix/patch-ctypes-callproc.patch)

The macOS code for sniffing for _dyld_shared_cache_contains_path falls back on a possibly inappropriate code path if a configure time check fails.

This patch fixes the fallback behavior for cross-compiling scenarios. See https://bugs.python.org/issue44689

**Related:**
- [`patch-ctypes-callproc-legacy.patch`](https://github.com/astral-sh/python-build-standalone/blob/main/cpython-unix/patch-ctypes-callproc-legacy.patch) (for Python ≤3.10)

Contributor guide

Open the contributing guide

Research direction

Start with cpython-unix/patch-ctypes-callproc.patch and compare it with patch-ctypes-callproc-legacy.patch for Python ≤3.10. Read Python issue 44689 alongside the patch to understand the configure-time check and cross-compiling fallback. Done means the fallback behavior is corrected in the applicable patch files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.