proxygen
fbzmq.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # Copyright (c) Facebook, Inc. and its affiliates.
3 from __future__ import absolute_import
4 from __future__ import division
5 from __future__ import print_function
6 from __future__ import unicode_literals
7 
8 import specs.fbthrift as fbthrift
9 import specs.folly as folly
10 import specs.gmock as gmock
11 import specs.sodium as sodium
12 import specs.sigar as sigar
13 
14 from shell_quoting import ShellQuoted
15 
16 
17 def fbcode_builder_spec(builder):
18  builder.add_option('zeromq/libzmq:git_hash', 'v4.2.5')
19  return {
20  'depends_on': [folly, fbthrift, gmock, sodium, sigar],
21  'steps': [
22  builder.github_project_workdir('zeromq/libzmq', '.'),
23  builder.step('Build and install zeromq/libzmq', [
24  builder.run(ShellQuoted('./autogen.sh')),
25  builder.configure(),
26  builder.make_and_install(),
27  ]),
28 
29  builder.fb_github_project_workdir('fbzmq/fbzmq/build', 'facebook'),
30  builder.step('Build and install fbzmq/fbzmq/build', [
31  builder.cmake_configure('fbzmq/fbzmq/build'),
32  # we need the pythonpath to find the thrift compiler
33  builder.run(ShellQuoted(
34  'PYTHONPATH="$PYTHONPATH:"{p}/lib/python2.7/site-packages '
35  'make -j {n}'
36  ).format(p=builder.option('prefix'), n=builder.option('make_parallelism'))),
37  builder.run(ShellQuoted('make install')),
38  ]),
39  ],
40  }
def fbcode_builder_spec(builder)
Definition: fbzmq.py:17
Formatter< false, Args... > format(StringPiece fmt, Args &&...args)
Definition: Format.h:271