Bug 1684915: install Python development headers during bootstrap on Fedora/Debian flavors r=firefox-build-system-reviewers,mhentges

Since zstandard has native code that must be compiled, and that code
uses Python headers, we should be installing those headers as part
of bootstrap.

Most users will have these packages on their machines through various
other means (notably installing `pip`, ie `sudo apt install python3-pip`),
but since it is possible to avoid a pip installation (for example
by installing Mercurial through `yum` and then running bootstrap
immediately after cloning) we should specify these packages as required
by bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D101479
This commit is contained in:
Connor Sheehan 2021-01-12 20:35:24 +00:00
parent ab256f15e4
commit 5f3ac9bc5b
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class CentOSFedoraBootstrapper(LinuxBootstrapper, BaseBootstrapper):
# and include the npm package.
self.packages = [
"nodejs",
"python-devel",
"which",
]

View File

@ -32,6 +32,8 @@ class DebianBootstrapper(LinuxBootstrapper, BaseBootstrapper):
# Ubuntu).
COMMON_PACKAGES = [
"build-essential",
"libpython2-dev",
"libpython3-dev",
"nodejs",
"unzip",
"uuid",