Skip to content

Commit b6d69a8

Browse files
committed
wip
1 parent 08fc8f8 commit b6d69a8

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

python/private/pypi/whl_library.bzl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,25 @@ def _whl_library_deps_impl(rctx):
672672
"\n".join(loads),
673673
"",
674674
"alias(",
675-
" name = \"package_metadata\"",
675+
" name = \"package_metadata\",",
676676
" actual = \"{}\"".format(rctx.attr.whl_library.same_package_label("package_metadata")),
677677
")",
678678
"",
679+
"alias(",
680+
" name = \"data\",",
681+
" actual = \"{}\"".format(rctx.attr.whl_library.same_package_label("data")),
682+
")",
683+
"",
684+
"alias(",
685+
" name = \"dist_info\",",
686+
" actual = \"{}\"".format(rctx.attr.whl_library.same_package_label("dist_info")),
687+
")",
688+
"",
689+
"alias(",
690+
" name = \"extracted_whl_files\",",
691+
" actual = \"{}\"".format(rctx.attr.whl_library.same_package_label("extracted_whl_files")),
692+
")",
693+
"",
679694
"whl_library_from_requires_dist(",
680695
" include = packages,",
681696
] + [

python/private/pypi/whl_library_targets.bzl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,6 @@ def whl_library_targets(
163163
rules: {type}`struct` A struct with references to rules for creating targets.
164164
"""
165165
src_pkg = Label(src_pkg)
166-
for target in [
167-
DATA_LABEL,
168-
DIST_INFO_LABEL,
169-
EXTRACTED_WHEEL_FILES,
170-
]:
171-
native.alias(
172-
name = target,
173-
actual = src_pkg.same_package_label(target),
174-
visibility = ["//visibility:public"],
175-
)
176-
177166
for src, dest in copy_files.items():
178167
rules.copy_file(
179168
name = dest + ".copy",

0 commit comments

Comments
 (0)