Skip to content

Commit 3fa3d73

Browse files
committed
Remove unused fields
1 parent 056b7dc commit 3fa3d73

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

python/private/common.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ def create_py_info(
435435
if PyInfo in target or (BuiltinPyInfo != None and BuiltinPyInfo in target):
436436
py_info.merge(_get_py_info(target))
437437

438-
deps_transitive_sources = py_info.transitive_sources.build()
439438
py_info.transitive_sources.add(required_py_files)
440439

441440
# We only look at data to calculate uses_shared_libraries, if it's already
@@ -457,7 +456,7 @@ def create_py_info(
457456
if py_info.get_uses_shared_libraries():
458457
break
459458

460-
return py_info.build(), deps_transitive_sources, py_info.build_builtin_py_info()
459+
return py_info.build(), py_info.build_builtin_py_info()
461460

462461
def _get_py_info(target):
463462
return target[PyInfo] if PyInfo in target or BuiltinPyInfo == None else target[BuiltinPyInfo]

python/private/py_executable.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ def _create_providers(
18381838
PyCcLinkParamsInfo(cc_info = cc_info),
18391839
)
18401840

1841-
py_info, deps_transitive_sources, builtin_py_info = create_py_info(
1841+
py_info, builtin_py_info = create_py_info(
18421842
ctx,
18431843
original_sources = original_sources,
18441844
required_py_files = required_py_files,

python/private/py_library.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ load(
5555
)
5656
load(":version.bzl", "version")
5757

58-
_py_builtins = py_internal
59-
6058
LIBRARY_ATTRS = dicts.add(
6159
COMMON_ATTRS,
6260
PY_SRCS_ATTRS,
@@ -164,7 +162,7 @@ def py_library_impl(ctx, *, semantics):
164162
imports, venv_symlinks = _get_imports_and_venv_symlinks(ctx, semantics)
165163

166164
cc_info = semantics.get_cc_info_for_library(ctx)
167-
py_info, deps_transitive_sources, builtins_py_info = create_py_info(
165+
py_info, builtins_py_info = create_py_info(
168166
ctx,
169167
original_sources = direct_sources,
170168
required_py_files = required_py_files,

0 commit comments

Comments
 (0)