Skip to content

make variables for runfiles location of $(PYTHON3) to support --no_legacy_external_runfiles #2728

Closed
@FrankPortman

Description

@FrankPortman

🚀 feature request

Relevant Rules

rules_python

Description

When using --no_legacy_external_runfiles, env vars set via $(PYTHON3) are not found at runtime due to the missing location in external/....

Describe the solution you'd like

Something that looks like bazelbuild/rules_java#272 whereby $(PYTHON3) or a new make var, correctly stubs out runfile locations, so that the code is compatible with --no_legacy_external_runfiles.

Describe alternatives you've considered

Using sys.executable inside binary/test code to set the env var manually.

Using non hermetic Python.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions