forked from facebook/pyre-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.buck_definitions
42 lines (37 loc) · 939 Bytes
/
.buck_definitions
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
# Copyright (c) 2016-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Adapter for internal buck configuration.
original_python_binary = python_binary
def python_binary(
name,
srcs=None,
platform=None,
gen_srcs=None,
main_module=None,
deps=None,
):
original_python_library(
name=name + '.lib',
deps=deps,
)
original_python_binary(
name=name,
platform=platform,
main_module=main_module,
visibility=[
'PUBLIC',
],
deps=[':%s.lib' % (name,)]
)
original_python_library = python_library
def python_library(name, deps=None, **kwargs):
original_python_library(
name=name,
deps=deps,
visibility=kwargs.pop('visibility', ['PUBLIC']),
**kwargs
)
def python_unittest(**kwargs):
pass