Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] - How does someone build for multiple versions of python? #100

Open
tenspd137 opened this issue Aug 20, 2024 · 0 comments
Open
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@tenspd137
Copy link

tenspd137 commented Aug 20, 2024

Using rules_python, a person can add multiple toolchains - for example:

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.8",
)
python.toolchain(
    configure_coverage_tool = True,
    # Only set when you have mulitple toolchain versions.
    is_default = True,
    python_version = "3.9",
)
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.10",
)

How would a person switch toolchains when using pybind_extension so that I could build for py3.8 and py3.11?

@Mizux Mizux added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants