Skip to content

--//python/config_settings:py_freethreaded flag doesn't affect selection of the toolchains if the downstream project uses WORKSPACE #3262

@ybaturina

Description

@ybaturina

🐞 bug report

Affected Rule

//python/private:toolchains_repo(..)

Is this a regression?

N/A

Description

target_settings is always empty in the toolchain_suite call. As a result, passing --//python/config_settings:py_freethreaded="yes" doesn't affect the selection of the toolchain.

🔬 Minimal Reproduction

Example of the WORKSPACE: JAX repo

Patch for the rules_python v1.6: link

🌍 Your Environment

Operating System:

  
Ubuntu 20.04
  

Output of bazel version:

  
Build label: 7.4.1
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Mon Nov 11 21:24:53 2024 (1731360293)
Build timestamp: 1731360293
Build timestamp as int: 1731360293
  

Rules_python version:

  
v1.6
  

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