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
51ce9e3b
Unverified
Commit
51ce9e3b
authored
Jun 20, 2020
by
Andrew Murray
Committed by
GitHub
Jun 20, 2020
Browse files
Merge pull request #334 from radarhere/plat
Fixes for install_pypy
parents
182b7a1c
f9529163
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
12 deletions
+22
-12
.travis.yml
.travis.yml
+5
-0
common_utils.sh
common_utils.sh
+7
-9
tests/test_multibuild.sh
tests/test_multibuild.sh
+1
-0
tests/test_python_install.sh
tests/test_python_install.sh
+9
-3
No files found.
.travis.yml
View file @
51ce9e3b
...
...
@@ -70,6 +70,11 @@ matrix:
env
:
-
MB_PYTHON_VERSION=2.7
-
TEST_BUILDS=1
-
os
:
osx
env
:
-
MB_PYTHON_VERSION=pypy3.6-7.3
-
MB_PYTHON_OSX_VER=10.9
-
TEST_BUILDS=1
-
os
:
osx
language
:
objective-c
env
:
...
...
common_utils.sh
View file @
51ce9e3b
...
...
@@ -440,19 +440,17 @@ function install_pypy {
# sets
$PYTHON_EXE
variable to python executable
local version=
$1
suffix=linux64
case "
$PLAT
" in
"
x86_64
") suffix="
linux64
";;
"
x86_64
") if [ -n "
$IS_OSX
" ]; then
suffix="
osx64
";
else
suffix="
linux64
";
fi;;
"
i686
") suffix="
linux32
";;
"
darwin
") suffix="
osx64
";;
"
ppc64le
") suffix="
ppc64le
";;
"
s30x
") suffix="
s390x
";;
"
s3
9
0x
") suffix="
s390x
";;
"
aarch64
") suffix="
aarch64
";;
*) if [ -n "
$IS_OSX
" ]; then
suffix="
osx64
";
else
echo unknown platform "
$PLAT
"; exit 1
fi;;
*) echo unknown platform "
$PLAT
"; exit 1;;
esac
# Need to convert pypy-7.2 to pypy2.7-v7.2.0 and pypy3.6-7.3 to pypy3.6-v7.3.0
...
...
tests/test_multibuild.sh
View file @
51ce9e3b
...
...
@@ -19,6 +19,7 @@ unset PYTHON_EXE
if
[
-n
"
$IS_OSX
"
]
;
then
source
osx_utils.sh
MB_PYTHON_OSX_VER
=
${
MB_PYTHON_OSX_VER
:-
$(
macpython_sdk_for_version
$MB_PYTHON_VERSION
)
}
PLAT
=
${
PLAT
:-
$(
macpython_arch_for_version
$MB_PYTHON_VERSION
)
}
get_macpython_environment
$MB_PYTHON_VERSION
${
VENV
:-
""
}
$MB_PYTHON_OSX_VER
source
tests/test_python_install.sh
...
...
tests/test_python_install.sh
View file @
51ce9e3b
...
...
@@ -23,7 +23,7 @@ fi
python_mm
=
"
${
cpython_version
:0:1
}
.
${
cpython_version
:2:1
}
"
# extract implementation prefix and version
if
[[
"
$MB_PYTHON_VERSION
"
=
~
(
pypy-
)
?
([
0-9
\.
]
+
)
]]
;
then
if
[[
"
$MB_PYTHON_VERSION
"
=
~
(
pypy
[0-9
\.
]
*
-
)
?
([
0-9
\.
]
+
)
]]
;
then
_impl
=
${
BASH_REMATCH
[1]
:-
"cp"
}
requested_impl
=
${
_impl
:0:2
}
requested_version
=
${
BASH_REMATCH
[2]
}
...
...
@@ -52,8 +52,14 @@ if [ -n "$VENV" ]; then # in virtualenv
ingest
"Wrong virtualenv pip '
$PIP_CMD
'"
fi
else
# not virtualenv
macpie_bin
=
"
$MACPYTHON_PY_PREFIX
/
$python_mm
/bin"
if
[
"
$PYTHON_EXE
"
!=
"
$macpie_bin
/python
$python_mm
"
]
;
then
if
[[
$requested_impl
==
'cp'
]]
;
then
macpie_bin
=
"
$MACPYTHON_PY_PREFIX
/
$python_mm
/bin"
bin_name
=
"python
$python_mm
"
else
macpie_bin
=
"
$PWD
/pypy
$python_mm
-v
$implementer_version
-osx64/bin"
bin_name
=
"pypy"
fi
if
[
"
$PYTHON_EXE
"
!=
"
$macpie_bin
/
$bin_name
"
]
;
then
ingest
"Wrong macpython python cmd '
$PYTHON_EXE
'"
fi
if
[
"
$PIP_CMD
"
!=
"sudo
$macpie_bin
/pip
${
python_mm
}${
expected_pip_args
}
"
]
;
then
...
...
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