proxygen
|
Functions | |
def | recursively_flatten_list (l) |
def | run_command (cmd, kwargs) |
def | make_temp_dir (d) |
def | _inner_read_config (path) |
def | read_fbcode_builder_config (filename) |
def | steps_for_spec (builder, spec, processed_modules=None) |
def | build_fbcode_builder_config (config) |
|
private |
Helper to read a named config file. The grossness with the global is a workaround for this python bug: https://bugs.python.org/issue21591 The bug prevents us from defining either a local function or a lambda in the scope of read_fbcode_builder_config below.
Definition at line 42 of file utils.py.
References read_fbcode_builder_config().
def utils.build_fbcode_builder_config | ( | config | ) |
Definition at line 93 of file utils.py.
References steps_for_spec().
Referenced by shell_builder.ShellFBCodeBuilder.copy_local_repo().
def utils.read_fbcode_builder_config | ( | filename | ) |
Definition at line 55 of file utils.py.
Referenced by _inner_read_config(), and shell_builder.ShellFBCodeBuilder.copy_local_repo().
def utils.recursively_flatten_list | ( | l | ) |
Definition at line 19 of file utils.py.
References type.
Referenced by shell_builder.ShellFBCodeBuilder._render_impl(), and docker_builder.DockerFBCodeBuilder._render_impl().
def utils.run_command | ( | cmd, | |
kwargs | |||
) |
Definition at line 26 of file utils.py.
References folly.format().
Referenced by docker_builder.DockerFBCodeBuilder.copy_local_repo().
def utils.steps_for_spec | ( | builder, | |
spec, | |||
processed_modules = None |
|||
) |
Sets `builder` configuration, and returns all the builder steps necessary to build `spec` and its dependencies. Traverses the dependencies in depth-first order, honoring the sequencing in each 'depends_on' list.
Definition at line 70 of file utils.py.
Referenced by build_fbcode_builder_config().