@@ -37,6 +37,7 @@ def parse_modules(*, module_ctx, logger, _fail = fail):
3737
3838 Args:
3939 module_ctx: {type}`module_ctx` module context.
40+ logger: {type}`repo_utils.logger` A logger to use.
4041 _fail: {type}`function` the failure function, mainly for testing.
4142
4243 Returns:
@@ -335,7 +336,6 @@ def _python_impl(module_ctx):
335336 ** kwargs
336337 )
337338 if not register_result .impl_repos :
338- fail ("hit" )
339339 continue
340340
341341 host_platforms = {}
@@ -674,13 +674,7 @@ def _process_single_version_platform_overrides(*, tag, _fail = fail, default):
674674 if tag .sha256 :
675675 available_versions [tag .python_version ].setdefault ("sha256" , {})[tag .platform ] = tag .sha256
676676 if tag .strip_prefix :
677- v = available_versions
678- v1 = available_versions [tag .python_version ]
679- v1 .setdefault ("strip_prefix" , {})
680- v2 = v1 ["strip_prefix" ]
681- print (v2 )
682- v2 [tag .platform ] = tag .strip_prefix
683- ##available_versions[tag.python_version].setdefault("strip_prefix", {})[tag.platform] = tag.strip_prefix
677+ available_versions [tag .python_version ].setdefault ("strip_prefix" , {})[tag .platform ] = tag .strip_prefix
684678
685679 if tag .urls :
686680 available_versions [tag .python_version ].setdefault ("url" , {})[tag .platform ] = tag .urls
@@ -712,7 +706,9 @@ def _process_single_version_platform_overrides(*, tag, _fail = fail, default):
712706 arch = "UNKNOWN_CUSTOM_ARCH"
713707
714708 # Move the override earlier in the ordering -- the platform key ordering
715- # becomes the toolchain ordering within the version.
709+ # becomes the toolchain ordering within the version. This allows the
710+ # override to have a superset of constraints from a regular runtimes
711+ # (e.g. same platform, but with a custom flag required).
716712 override_first = {
717713 tag .platform : platform_info (
718714 compatible_with = target_compatible_with ,
0 commit comments