Open Bug 2090261 Opened 13 days ago

Creating the wpt virtualenv on Linux prints a PyGObject build failure

Categories

(Testing :: web-platform-tests, defect)

defect

Tracking

(Not tracked)

People

(Reporter: dao, Unassigned)

References

Details

python/sites/wpt.txt lists PyGObject as pypi-optional for aamtests (bug 2046608). PyPI ships it only as a source tarball, so pip builds it, which needs pkg-config and the cairo and GObject introspection headers. mach bootstrap installs none of these, so on a typical Linux host the first command to create the wpt site prints pip's full build error before "aamtests will not be runnable. Continuing." Every user of that site sees it, e.g. ./mach python --virtualenv wpt scripts that never run aamtests.

Two possible fixes, open as to which:

  1. When an optional package fails to install, print only the site's one-line note instead of pip's output.
  2. Move PyGObject into a site that only aamtests use.
You need to log in before you can comment on or make changes to this bug.