Python: Move to the new packaging rules. · github/codeql@1158e92 · GitHub
Skip to content

Commit 1158e92

Browse files
committed
Python: Move to the new packaging rules.
1 parent dcd4485 commit 1158e92

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

‎python/BUILD.bazel‎

Lines changed: 12 additions & 16 deletions

‎python/extractor/BUILD.bazel‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@semmle_code//:dist.bzl", "pack_zip")
1+
load("//misc/bazel:pkg.bzl", "codeql_pkg_files", "strip_prefix")
22

33
py_binary(
44
name = "make-zips-py",
@@ -31,7 +31,7 @@ genrule(
3131
tools = [":make-zips-py"],
3232
)
3333

34-
pack_zip(
34+
codeql_pkg_files(
3535
name = "extractor",
3636
srcs = [
3737
"LICENSE-PSF.md", # because we distribute imp.py
@@ -44,5 +44,6 @@ pack_zip(
4444
":python3src",
4545
] + glob(["data/**"]),
4646
prefix = "tools",
47-
visibility = ["//visibility:public"],
47+
strip_prefix=strip_prefix.from_pkg(),
48+
visibility = ["//python:__pkg__"],
4849
)

‎python/tools/BUILD.bazel‎

Lines changed: 10 additions & 7 deletions

0 commit comments

Comments
 (0)