Skip to content

rules_python 1.8.0 and venv #3521

@gfrankliu

Description

@gfrankliu

Congrats on the 1.8.0 release! I just tried it with venv by adding below to my .bazelrc (I am using bazel 8.5.0 on Linux):

common --@rules_python//python/config_settings:bootstrap_impl=script
common --@rules_python//python/config_settings:venvs_site_packages=yes
common --@rules_python//python/config_settings:venvs_use_declare_symlink=yes

then bazel run a trial py_binary:

bazel run //util/validate_python_ml_requirements:validate_python_ml_requirements

(to see if tensorflow can finally find all cuda libraries via venv)

Now if I go to the directory:

bazel-bin/util/validate_python_ml_requirements/_validate_python_ml_requirements.venv/bin

I see "python3" file there, symlinked to something non-exist:

$ cksum python3
cksum: python3: No such file or directory

Am I missing anything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions