forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__python_common.soy
More file actions
127 lines (117 loc) · 3.8 KB
/
Copy path__python_common.soy
File metadata and controls
127 lines (117 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{namespace python_common}
/***/
{template .srcs_arg}
{call buck.arg}
{param name: 'srcs' /}
{param default : '[]' /}
{param desc}
The set of <code>.py</code> files included in this library.
{/param}
{/call}
{/template}
/***/
{template .platform_srcs_arg}
{call buck.arg}
{param name : 'platform_srcs' /}
{param default : '[]' /}
{param desc}
Python-platform-specific source files. These should be specified as a list of pairs where the first
element is an un-anchored regex (in java.util.regex.Pattern syntax) against which the platform name
is matched (as defined in the `python#name` section of `.buckconfig`), and the second element is
a list of source files.
{/param}
{/call}
{/template}
/***/
{template .resources_arg}
{call buck.arg}
{param name: 'resources' /}
{param default : '[]' /}
{param desc}
Static files to be packaged along with the python sources. These resources can be
accessed at runtime using the <a href="http://setuptools.readthedocs.io/en/latest/pkg_resources.html">pkg_resources</a> API.
{/param}
{/call}
{/template}
/***/
{template .platform_resources_arg}
{call buck.arg}
{param name : 'platform_resources' /}
{param default : '[]' /}
{param desc}
Python-platform-specific resource files. These should be specified as a list of pairs where the first
element is an un-anchored regex (in java.util.regex.Pattern syntax) against which the platform name
is matched (as defined in the `python#name` section of `.buckconfig`), and the second element is a
list of resource files.
{/param}
{/call}
{/template}
/***/
{template .base_module_arg}
{call buck.arg}
{param name: 'base_module' /}
{param default : 'None' /}
{param desc}
The package for which the given specified sources and resources should reside in their final
location in the top-level binary. If unset, the project relative directory that houses the
BUCK file is used.
{/param}
{/call}
{/template}
/***/
{template .platform_arg}
{call buck.arg}
{param name : 'platform' /}
{param default : 'None' /}
{param desc}
The name of the Python platform to build against by default (as defined in the `python#name` section of `.buckconfig`).
{/param}
{/call}
{/template}
/***/
{template .linker_flags_arg}
{call buck.arg}
{param name : 'linker_flags' /}
{param default : '[]' /}
{param desc}
Additional linker flags that should be applied to any links which are specific to this rule.
Note that whether these flags are used are dependent on the native link strategy selected in
`.buckconfig` and currently only applies to the `MERGED` link strategy, as the `SEPARATE` link
strategy pulls in shared libraries linked in the context of their owning rule (e.g. `cxx_library`).
{/param}
{/call}
{/template}
/***/
{template .package_style_arg}
{call buck.arg}
{param name : 'package_style' /}
{param default : 'None' /}
{param desc}
Used to override the global packaging style set with {call buckconfig.python_package_style /}.
{/param}
{/call}
{/template}
/***/
{template .preload_deps_arg}
{call buck.arg}
{param name : 'preload_deps' /}
{param default : '[]' /}
{param desc}
A list of C/C++ library dependencies that need to be loaded before any other libraries when the
python binary starts up. This requires dynamic loader support found on most systems (e.g. `LD_PRELOAD`).
{/param}
{/call}
{/template}
/***/
{template .exclude_deps_from_merged_linking_arg}
{call buck.arg}
{param name : 'exclude_deps_from_merged_linking' /}
{param default : 'False' /}
{param desc}
When linking the top-level binary with a <code>merged</code> <code>native_link_style</code>,
do not merge or re-link any native transitive deps of this library. This is useful if
this library wraps prebuilt native extensions which cannot be re-linked as part of
library merging.
{/param}
{/call}
{/template}