If I use site_packages_extra_files to add a local target to the venv like this:
create_venv(
name = "create_venv_hello_bin",
destination_folder = ".venv",
requirements_txt = "//requirements.lock",
site_packages_extra_files = [
"//hello_bin",
],
)
It includes just the listed target, and not any of its transitive dependencies.
In my example, hello_bin depends on hello_lib. And hello_lib is not in the venv.