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
4effa420
Commit
4effa420
authored
Jan 22, 2020
by
Matthew Brett
Browse files
Try fix for package install on ARM etc
parent
520c2ee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests/test_supported_wheels.sh
tests/test_supported_wheels.sh
+3
-2
No files found.
tests/test_supported_wheels.sh
View file @
4effa420
# Test supported wheels script
# Test supported wheels script
PYTHON_EXE
=
${
PYTHON_EXE
:-
python
}
PYTHON_EXE
=
${
PYTHON_EXE
:-
python
}
if
[
-z
"
$PIP_CMD
"
]
;
then
if
[
-z
"
$PIP_CMD
"
]
;
then
pip_install
=
"pip install --user"
pip_install
=
"
$PYTHON_EXE
-m
pip install --user"
else
else
pip_install
=
"
$PIP_CMD
install"
pip_install
=
"
$PIP_CMD
install"
fi
fi
# Needed for supported_wheels script
$pip_install
packaging
$pip_install
packaging
# Current wheel versions not available for older Pythons.
# Current wheel versions not available for older Pythons.
lpv
=
$(
lex_ver
$MB_PYTHON_VERSION
)
lpv
=
$(
lex_ver
$MB_PYTHON_VERSION
)
...
@@ -28,7 +29,7 @@ fi
...
@@ -28,7 +29,7 @@ fi
# Test that wheels for versions other than our own, not supported.
# Test that wheels for versions other than our own, not supported.
if
[
$(
uname
)
==
'Darwin'
]
;
then
if
[
$(
uname
)
==
'Darwin'
]
;
then
# 2>&1 because Python 2.7 version goes to stderr
# 2>&1 because Python 2.7 version goes to stderr
our_ver
=
$(
python
--version
2>&1 |
awk
'{print $2}'
|
awk
-F
'.'
'{print $1$2}'
)
our_ver
=
$(
$PYTHON_EXE
--version
2>&1 |
awk
'{print $2}'
|
awk
-F
'.'
'{print $1$2}'
)
other_ver
=
$(
[
"
$our_ver
"
==
"37"
]
&&
echo
"38"
||
echo
"37"
)
other_ver
=
$(
[
"
$our_ver
"
==
"37"
]
&&
echo
"38"
||
echo
"37"
)
good_whl
=
"tornado-5.1-cp
${
our_ver
}
-cp
${
our_ver
}
m-macosx_10_9_x86_64.whl"
good_whl
=
"tornado-5.1-cp
${
our_ver
}
-cp
${
our_ver
}
m-macosx_10_9_x86_64.whl"
bad_whl
=
"tornado-5.1-cp
${
other_ver
}
-cp
${
other_ver
}
m-macosx_10_9_x86_64.whl"
bad_whl
=
"tornado-5.1-cp
${
other_ver
}
-cp
${
other_ver
}
m-macosx_10_9_x86_64.whl"
...
...
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