pre-commit-ci / issues

public issues for https://pre-commit.ci
16 stars 3 forks source link

`'pkg-config' not found.` #126

Closed eggplants closed 2 years ago

eggplants commented 2 years ago

https://results.pre-commit.ci/run/github/364638362/1654366597.Qqhy2XKRRva-vl_Yve79Rg

My project needs PyGObject-stubs to lint with mypy. It also needs PyGObject and its dependencies including pycairo.

While building pycairo in pre-commit.ci, it raises 'pkg-config' not found. Error.

Any workarounds?

asottile commented 2 years ago

hmmm I would probably assert that pygobject-stubs is set up incorrectly and shouldn't depend on pygobject -- even if I were to add pkg-config it would then next fail on missing cairo (which is a very hefty dependency)