Skip to content

Add the missing python3 dependency to 16 py-* ports - #300

Merged
3nids merged 2 commits into
mainfrom
cross-python3-target-dep
Nov 7, 2026
Merged

3nids merged 2 commits into
mainfrom
cross-python3-target-dep

Conversation

@3nids

@3nids 3nids commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #299: this PR's base is its branch, osx-cross-python3. When #299 is merged and its branch deleted, GitHub retargets this PR to main. Replaces #298.

vcpkg-python-scripts is a host dependency, but its PYTHON3 is the target interpreter (${CURRENT_INSTALLED_DIR}/tools/python3). When host and target triplets are the same, the host python3 dependency covers it. In a cross build, nothing orders a py-* port after the target python3. vcpkg can then build the port first, and it fails with:

Command failed: PYTHON3-NOTFOUND -m gpep517 build-wheel ...

This hit py-packaging in both clean cross builds I ran with #299. A rerun succeeded once python3 was installed.

104 py-* ports already list python3 as a dependency. This PR adds it to the 16 that don't and bumps their port-version:

py-annotated-types, py-certifi, py-cppy, py-kiwisolver, py-packaging, py-pillow, py-pyproject-metadata, py-scikit-build-core, py-semantic-version, py-setuptools-scm, py-sip, py-six, py-tomli, py-typing-extensions, py-typing-inspection, py-wheel

When host and target triplets are the same, as in this repository's CI, the new dependency is the python3 package that is already installed. Only the ABI hashes change.

Tested on an arm64 macOS host with the x64-osx-dynamic-release target, as in #299. I removed python3 and all py-* ports, then ran one vcpkg install of py-pyqt6 and py-pyqt6-webengine. vcpkg now installs python3:x64 before py-packaging:x64, and the build succeeds on the first run. Of the 16 ports, that build includes py-packaging, py-sip and py-wheel; the other 13 were not built. I ran the static workflow's version-database and manifest-format checks locally, and both pass.

@3nids
3nids force-pushed the cross-python3-target-dep branch from 580601a to f099dc7 Compare November 7, 2026 21:29
@3nids
3nids merged commit 149c488 into main Nov 7, 2026
@3nids
3nids deleted the cross-python3-target-dep branch November 7, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants