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
91334489
Commit
91334489
authored
Mar 03, 2020
by
mattip
Browse files
use 'python -mpip' to work around macOS problems
parent
47f4b247
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
common_utils.sh
common_utils.sh
+3
-8
No files found.
common_utils.sh
View file @
91334489
...
@@ -333,18 +333,13 @@ function install_wheel {
...
@@ -333,18 +333,13 @@ function install_wheel {
# WHEEL_SDIR (optional, default "
wheelhouse
")
# WHEEL_SDIR (optional, default "
wheelhouse
")
# TEST_DEPENDS (optional, default "")
# TEST_DEPENDS (optional, default "")
# MANYLINUX_URL (optional, default "") (via pip_opts function)
# MANYLINUX_URL (optional, default "") (via pip_opts function)
set -x
local wheelhouse=
$(
abspath
${
WHEEL_SDIR
:-
wheelhouse
}
)
local wheelhouse=
$(
abspath
${
WHEEL_SDIR
:-
wheelhouse
}
)
if [ -n "
$TEST_DEPENDS
" ]; then
if [ -n "
$TEST_DEPENDS
" ]; then
while read TEST_DEPENDENCY; do
while read TEST_DEPENDENCY; do
pip install
$(
pip_opts
)
$@
$TEST_DEPENDENCY
python -m
pip install
$(
pip_opts
)
$@
$TEST_DEPENDENCY
done <<< "
$TEST_DEPENDS
"
done <<< "
$TEST_DEPENDS
"
fi
fi
ls .
python -mpip install packaging
which pip
which python
pip install packaging
get_platform
local supported_wheels=
$(
python
$MULTIBUILD_DIR
/supported_wheels.py
$wheelhouse
/
*
.whl
)
local supported_wheels=
$(
python
$MULTIBUILD_DIR
/supported_wheels.py
$wheelhouse
/
*
.whl
)
if [ -z "
$supported_wheels
" ]; then
if [ -z "
$supported_wheels
" ]; then
echo "
ERROR: no supported wheels found
"
echo "
ERROR: no supported wheels found
"
...
@@ -352,7 +347,7 @@ function install_wheel {
...
@@ -352,7 +347,7 @@ function install_wheel {
exit 1
exit 1
fi
fi
# Install compatible wheel
# Install compatible wheel
pip install
$(
pip_opts
)
$@
$supported_wheels
python -m
pip install
$(
pip_opts
)
$@
$supported_wheels
}
}
function install_run {
function install_run {
...
...
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