mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-10 05:22:59 +03:00
Summary: In order to speed up build times on a mac, add homebrew support to getdeps. Homebrew packages can be declared in a manifest using the `homebrew` header. Futher, ahornby has added manifest entries for homebrew packages which are included in this diff and also included a change to use the correct version of openssl. Without this openssl change, homebrew cmake configure finds an old openssl 1.0.2 install. This diff provides a 2x speed up for building folly: Timings for clean getdeps folly build on mid-2018 2.9Ghz i9 6 core intel macbook pro with 32GB RAM: With new homebrew system deps: ``` rm -rf /Users/ahornby/.scratch/UsersZahornbyZfbsource/fbcode_builder_getdeps/ time ./opensource/fbcode_builder/getdeps.py build --allow-system-packages folly real 17m39.329s user 76m10.317s sys 5m50.163s ``` Without: ``` rm -rf /Users/ahornby/.scratch/UsersZahornbyZfbsource/fbcode_builder_getdeps/ time ./opensource/fbcode_builder/getdeps.py build folly real 32m10.344s user 105m53.448s sys 15m57.858s ``` Reviewed By: ahornby Differential Revision: D33842632 fbshipit-source-id: ac785d4a8dcfa31b77292bddd9e747022ac36e3b
39 lines
868 B
Plaintext
39 lines
868 B
Plaintext
[manifest]
|
|
name = python
|
|
|
|
[homebrew]
|
|
python@3.8
|
|
|
|
[rpms]
|
|
python3
|
|
python3-devel
|
|
|
|
# eden_scm needs dataclasses which arrive in 3.7, and the bionic python is 3.6
|
|
[debs.not(all(distro=ubuntu,distro_vers="18.04"))]
|
|
python3-all-dev
|
|
|
|
[download]
|
|
url = https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
|
|
sha256 = 316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a
|
|
|
|
[build]
|
|
builder = autoconf
|
|
subdir = Python-3.8.12
|
|
|
|
[autoconf.args]
|
|
--enable-shared
|
|
--with-ensurepip=install
|
|
|
|
# python's pkg-config libffi detection is broken
|
|
# See https://bugs.python.org/issue34823 for clearest description
|
|
# and pending PR https://github.com/python/cpython/pull/20451
|
|
# The documented workaround requires an environment variable derived from
|
|
# pkg-config to be passed into its configure step
|
|
[autoconf.envcmd.LDFLAGS]
|
|
pkg-config
|
|
--libs-only-L
|
|
libffi
|
|
|
|
[dependencies]
|
|
libffi
|