8000 Fix support for default python version when using pycross_register_for_python_toolchains by jvolkman · Pull Request #57 · jvolkman/rules_pycross · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix support for default python version when using pycross_register_for_python_toolchains #57

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

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

jvolkman
Copy link
Owner
@jvolkman jvolkman commented Nov 29, 2023

When registering toolchains and environments using pycross_register_for_python_toolchains, the entries corresponding to the default Python version should not have a @rules_python//python/config_settings:python_version flag setting. This mirrors how rules_python's own toolchains are constructed.

Also, this PR adds a config_setting attribute to pycross_target_environment. If set, the generated lock file won't have a config_setting for that environment, and select statements will use the provided label.

@jvolkman jvolkman merged commit f8a2390 into main Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0