Skip to content

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

Closed
3nids wants to merge 9 commits into
open-vcpkg:mainfrom
3nids:cross-python3-target-dep
Closed

3nids wants to merge 9 commits into
open-vcpkg:mainfrom
3nids:cross-python3-target-dep

Conversation

@3nids

@3nids 3nids commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #297, so merge that one first. Only the last two commits are new here.

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 #297. 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 #297. 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 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

Replaced by #300, which is stacked on #299.

@3nids 3nids closed this Nov 4, 2026
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.

1 participant