prequ
prequ copied to clipboard
Improve error message for "wheel not found"
Currently, if wheel build fails to produce the wheel file (e.g. because of some build error), a very confusing IndexError
is generated. It should rather generate a proper error message with better details of what went wrong.
The IndexError
is caused by get_wheels
returning an empty list here:
https://github.com/suutari/prequ/blob/ed3b7984c43fa3bd00e089d3fdd0d9e5af0cdc69/prequ/scripts/build_wheels.py#L51
Thanks to @RauliL and @inesjelovac for reporting this to me.
This might also be caused by misspelling the requirement name in the source requirements so it might be a good idea to add a hint to the error message such as "Is the requirement name spelled correctly?".