Skip to content

Tcl missing from hermetic interpreter on windows #1544

@th0masb

Description

@th0masb

🐞 bug report

Affected Rule

The issue is caused by the rule:

python_register_toolchains

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

unsure

Description

A clear and concise description of the problem...

It looks like the tcl dir in, e.g. https://github.com/indygreg/python-build-standalone/releases/download/20220802/cpython-3.10.6+20220802-x86_64-pc-windows-msvc-shared-install_only.tar.gz is being filtered out by

https://github.com/bazelbuild/rules_python/blob/main/python/repositories.bzl#L250-L262

Why are we even filtering this interpreter build at all? Tcl is needed for things like matplotlib, this is causing stuff to break on windows.

🔬 Minimal Reproduction

Run anything requiring tcl on windows

🔥 Exception or Error





🌍 Your Environment

Operating System:

  
Pop!_OS 22.04 LTS x86_64 cross building to windows x86_64
  

Output of bazel version:

  
release 6.4.0
  

Rules_python version:

  
0.25.0
  

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions