Skip to content

Commit a9905a5

Browse files
committed
do not add version to the whl_library because we are passing python interpreter to the rule
1 parent 36a5b01 commit a9905a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/private/pypi/extension.bzl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,12 @@ def _whl_repos(*, requirement, whl_library_args, download_only, netrc, auth_patt
305305
args["urls"] = [distribution.url]
306306
args["sha256"] = distribution.sha256
307307
args["filename"] = distribution.filename
308-
args["experimental_target_platforms"] = requirement.target_platforms
308+
args["experimental_target_platforms"] = [
309+
# Get rid of the version fot the target platforms because we are
310+
# passing the interpreter any way. Ideally we should search of ways
311+
# how to pass the target platforms through the hub repo.
312+
p.partition("_")[2] for p in requirement.target_platforms
313+
]
309314

310315
# Pure python wheels or sdists may need to have a platform here
311316
target_platforms = None

0 commit comments

Comments
 (0)