Commit f76ab227 authored by Benoît Coste's avatar Benoît Coste
Browse files

Warn and exit when no supported wheels found

parent 0c4a9920
...@@ -45,7 +45,7 @@ function stop_spinner { ...@@ -45,7 +45,7 @@ function stop_spinner {
if [ ! -n "$MB_SPINNER_PID" ]; then if [ ! -n "$MB_SPINNER_PID" ]; then
return return
fi fi
kill $MB_SPINNER_PID kill $MB_SPINNER_PID
unset MB_SPINNER_PID unset MB_SPINNER_PID
...@@ -335,9 +335,15 @@ function install_wheel { ...@@ -335,9 +335,15 @@ function install_wheel {
pip install $(pip_opts) $@ $TEST_DEPENDENCY pip install $(pip_opts) $@ $TEST_DEPENDENCY
done <<< "$TEST_DEPENDS" done <<< "$TEST_DEPENDS"
fi fi
local supported_wheels=$(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl)
if [ -z "$supported_wheels" ]; then
echo "ERROR: no supported wheels found"
exit 1
fi
# Install compatible wheel # Install compatible wheel
pip install $(pip_opts) $@ \ pip install $(pip_opts) $@ $supported_wheels
$(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl)
} }
function install_run { function install_run {
......
...@@ -34,10 +34,10 @@ def main(): ...@@ -34,10 +34,10 @@ def main():
(tag.interpreter, tag.abi, tag.platform) if not isinstance(tag, tuple) else tag (tag.interpreter, tag.abi, tag.platform) if not isinstance(tag, tuple) else tag
for tag in get_supported() for tag in get_supported()
} }
for fname in sys.argv[1:]: # for fname in sys.argv[1:]:
tags = set(tags_for(fname)) # tags = set(tags_for(fname))
if supported.intersection(tags): # if supported.intersection(tags):
print(fname) # print(fname)
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment