Skip to content

fix: add pkg-config and libcairo2-dev so pycairo builds from source - #136

Merged
lurtz merged 3 commits into
mainfrom
copilot/fix-pycairo-build-failure
Aug 7, 2026
Merged

fix: add pkg-config and libcairo2-dev so pycairo builds from source#136
lurtz merged 3 commits into
mainfrom
copilot/fix-pycairo-build-failure

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

pycairo==1.29.0 has no prebuilt wheel for this environment, so pip invokes its meson build backend — which requires pkg-config and libcairo2-dev (cairo headers + .pc file). Neither was present, causing pip.parse repository-rule failures in any repo whose dependency graph pulls in pycairo (e.g. eclipse-score/tooling).

Changes

  • versions.yaml — pin pkg_config (1.8.1) and libcairo2_dev (1.18.0), consistent with the existing version-pinning pattern.
  • install.sh — install pkg-config and libcairo2-dev at their pinned versions alongside the other build-time APT dependencies.
  • tests/test_default.sh — add a smoke test that installs pycairo==1.29.0 via pip to verify the build dependencies are functional in the final image.

…test

Co-authored-by: lurtz <727209+lurtz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix pycairo build failure in devcontainer by adding dependencies fix: add pkg-config and libcairo2-dev so pycairo builds from source Aug 7, 2026
Copilot AI requested a review from lurtz August 7, 2026 12:18
@lurtz
lurtz marked this pull request as ready for review August 7, 2026 13:12
@lurtz
lurtz requested a review from opajonk as a code owner August 7, 2026 13:12
@lurtz
lurtz enabled auto-merge August 7, 2026 13:15

@opajonk opajonk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least this way it is explicitly documented as a requirement towards the environment. Better than a "works on my machine, but no idea why".

@lurtz
lurtz added this pull request to the merge queue Aug 7, 2026
Merged via the queue into main with commit c346497 Aug 7, 2026
9 checks passed
@lurtz
lurtz deleted the copilot/fix-pycairo-build-failure branch August 7, 2026 13:57
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.

pycairo build fails in devcontainer: missing pkg-config and libcairo2-dev

3 participants