Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
f76ab227
Commit
f76ab227
authored
Jan 22, 2020
by
Benoît Coste
Browse files
Warn and exit when no supported wheels found
parent
0c4a9920
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
common_utils.sh
common_utils.sh
+9
-3
supported_wheels.py
supported_wheels.py
+4
-4
No files found.
common_utils.sh
View file @
f76ab227
...
...
@@ -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 {
...
...
supported_wheels.py
View file @
f76ab227
...
...
@@ -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__'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment