-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
48 lines (45 loc) · 1.1 KB
/
BUILD.bazel
File metadata and controls
48 lines (45 loc) · 1.1 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
load("@semmle_code//:dist.bzl", "pack_zip")
py_binary(
name = "make-zips-py",
srcs = [
"make_zips.py",
"python_tracer.py",
],
data = [
"LICENSE-PSF.md",
"__main__.py",
"imp.py",
] + glob([
"blib2to3/**",
"buildtools/**",
"lark/**",
"semmle/**",
]),
# On @criemen's machine, without this, make-zips.py can't find its imports from
# python_tracer. The problem didn't show for some reason on Windows CI machines, though.
imports = ["."],
main = "make_zips.py",
)
genrule(
name = "python3src",
outs = [
"python3src.zip",
],
cmd = "PYTHON_INSTALLER_OUTPUT=\"$(RULEDIR)\" $(location :make-zips-py)",
tools = [":make-zips-py"],
)
pack_zip(
name = "extractor",
srcs = [
"LICENSE-PSF.md", # because we distribute imp.py
"convert_setup.py",
"get_venv_lib.py",
"imp.py",
"index.py",
"python_tracer.py",
"setup.py",
":python3src",
] + glob(["data/**"]),
prefix = "tools",
visibility = ["//visibility:public"],
)