Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: take custom tools versions into account when selecting Python interpreter #654

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
Mar 15, 2022

Conversation

mattem
Copy link
Contributor

@mattem mattem commented Mar 14, 2022

When providing a custom dict for the tool_versions, take this into account when selecting the filename and url.

This also changes the get_release_url function to allow for different URLs for each platform (where a platform is added after the initial release of the interpreter version).

@mattem mattem force-pushed the fix/custom_tools_versions branch 3 times, most recently from 7cbdbc4 to 0bca106 Compare March 14, 2022 15:48
@mattem mattem marked this pull request as ready for review March 14, 2022 15:53
@mattem mattem requested review from brandjon and lberki as code owners March 14, 2022 15:53
python/versions.bzl Outdated Show resolved Hide resolved
@@ -187,10 +185,18 @@ python_repository = repository_rule(
mandatory = True,
values = TOOL_VERSIONS.keys() + MINOR_MAPPING.keys(),
),
"release_filename": attr.string(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm it's smelly there's no docs/ change in this PR, something must not be wired up

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is exported, the macro wrapping it is, and these attrs are set in the macro

@mattem mattem force-pushed the fix/custom_tools_versions branch from 0bca106 to 063d48a Compare March 15, 2022 13:55
@mattem
Copy link
Contributor Author

mattem commented Mar 15, 2022

Updated to include the aarch64-apple-darwin release.

@mattem mattem merged commit 121741a into main Mar 15, 2022
@mattem mattem deleted the fix/custom_tools_versions branch March 15, 2022 15:03
mattem added a commit that referenced this pull request Mar 15, 2022
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.