Skip to content

Commit 2d6ce0b

Browse files
committed
Workaround dash/underscore issue
1 parent 877ea8e commit 2d6ce0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rules_python/piptool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def parse_requirement(name):
6363
# TODO(mattmoor): Consider memoizing if this recursion ever becomes
6464
# expensive enough to warrant it.
6565
def is_possible(distro, extra):
66+
distro = distro.replace("-", "_")
6667
# If we don't have the .whl at all, then this isn't possible.
6768
if distro not in whl_map:
6869
return False

0 commit comments

Comments
 (0)