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 {
if [ ! -n "$MB_SPINNER_PID" ]; then
return
fi
kill $MB_SPINNER_PID
unset MB_SPINNER_PID
......@@ -335,9 +335,15 @@ function install_wheel {
pip install $(pip_opts) $@ $TEST_DEPENDENCY
done <<< "$TEST_DEPENDS"
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
pip install $(pip_opts) $@ \
$(python $MULTIBUILD_DIR/supported_wheels.py $wheelhouse/*.whl)
pip install $(pip_opts) $@ $supported_wheels
}
function install_run {
......
......@@ -34,10 +34,10 @@ def main():
(tag.interpreter, tag.abi, tag.platform) if not isinstance(tag, tuple) else tag
for tag in get_supported()
}
for fname in sys.argv[1:]:
tags = set(tags_for(fname))
if supported.intersection(tags):
print(fname)
# for fname in sys.argv[1:]:
# tags = set(tags_for(fname))
# if supported.intersection(tags):
# print(fname)
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