8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49a434b + 7861c73 commit 1a1a539Copy full SHA for 1a1a539
rules_python/piptool.py
@@ -138,8 +138,10 @@ def pip_install():
138
all_requirements = _requirements.values()
139
140
def requirement(name):
141
- name = name.replace("-", "_").lower()
142
- return _requirements[name]
+ name_key = name.replace("-", "_").lower()
+ if name_key not in _requirements:
143
+ fail("Could not find pip-provided dependency: '%s'" % name)
144
+ return _requirements[name_key]
145
""".format(input=args.input,
146
whl_libraries='\n'.join(map(whl_library, whls)) if whls else "pass",
147
mappings=','.join([
tools/piptool.par
96 Bytes
0 commit comments