Skip to content

Commit 48763fa

Browse files
committed
remove extra printf and use either pth or site_file
1 parent ae1ffb7 commit 48763fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build_env.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ def install_files(env_path: pathlib.Path, files: List[EnvFile], add_pth: bool) -
174174
if is_data_file(file):
175175
install_data_file(env_path, file)
176176
else:
177-
install_site_file(site_packages_path, file)
178177
if add_pth:
179178
pths.add(file.env_path.parts[0])
179+
else:
180+
install_site_file(site_packages_path, file)
180181
if add_pth:
181182
pth.write_text("\n".join(pths), encoding="utf-8")
182183

venv.bzl

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def _py_venv_deps_impl(ctx):
2424
for dep in ctx.attr.deps:
2525
if PyInfo not in dep:
2626
continue
27-
print(dep[PyInfo].imports.to_list())
2827
imports.extend([i for i in dep[PyInfo].imports.to_list() if i not in imports])
2928

3029
deps = depset(transitive = [dep[DefaultInfo].default_runfiles.files for dep in ctx.attr.deps])

0 commit comments

Comments
 (0)