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
47f1b227
Commit
47f1b227
authored
Dec 07, 2022
by
Andrew Murray
Browse files
Updated the latest PyPy version
parent
59136eb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
common_utils.sh
common_utils.sh
+13
-9
No files found.
common_utils.sh
100644 → 100755
View file @
47f1b227
...
@@ -497,7 +497,7 @@ LATEST_PP_6=$LATEST_PP_6p0
...
@@ -497,7 +497,7 @@ LATEST_PP_6=$LATEST_PP_6p0
LATEST_PP_7p0=7.0.0
LATEST_PP_7p0=7.0.0
LATEST_PP_7p1=7.1.1
LATEST_PP_7p1=7.1.1
LATEST_PP_7p2=7.2.0
LATEST_PP_7p2=7.2.0
LATEST_PP_7p3=7.3.
9
LATEST_PP_7p3=7.3.
10
LATEST_PP_7=
$LATEST_PP_7p3
LATEST_PP_7=
$LATEST_PP_7p3
function unroll_version {
function unroll_version {
...
@@ -528,9 +528,20 @@ function install_pypy {
...
@@ -528,9 +528,20 @@ function install_pypy {
# sets
$PYTHON_EXE
variable to python executable
# sets
$PYTHON_EXE
variable to python executable
local version=
$1
local version=
$1
# Need to convert pypy-7.2 to pypy2.7-v7.2.0 and pypy3.6-7.3 to pypy3.6-v7.3.0
local prefix=
$(
get_pypy_build_prefix
$version
)
# since prefix is pypy3.6v7.2 or pypy2.7v7.2, grab the 4th (0-index) letter
local major=
${
prefix
:4:1
}
# get the pypy version 7.2.0
local py_version=
$(
fill_pypy_ver
$(
echo
$version
|
cut
-f2
-d-
))
case "
$PLAT
" in
case "
$PLAT
" in
"
x86_64
") if [ -n "
$IS_MACOS
" ]; then
"
x86_64
") if [ -n "
$IS_MACOS
" ]; then
suffix="
osx64
";
if [
$(
lex_ver
$py_version
)
-ge
$(
lex_ver 7.3.10
)
]; then
suffix="
macos_x86_64
";
else
suffix="
osx64
";
fi
else
else
suffix="
linux64
";
suffix="
linux64
";
fi;;
fi;;
...
@@ -541,13 +552,6 @@ function install_pypy {
...
@@ -541,13 +552,6 @@ function install_pypy {
*) echo unknown platform "
$PLAT
"; exit 1;;
*) echo unknown platform "
$PLAT
"; exit 1;;
esac
esac
# Need to convert pypy-7.2 to pypy2.7-v7.2.0 and pypy3.6-7.3 to pypy3.6-v7.3.0
local prefix=
$(
get_pypy_build_prefix
$version
)
# since prefix is pypy3.6v7.2 or pypy2.7v7.2, grab the 4th (0-index) letter
local major=
${
prefix
:4:1
}
# get the pypy version 7.2.0
local py_version=
$(
fill_pypy_ver
$(
echo
$version
|
cut
-f2
-d-
))
local py_build=
$prefix$py_version
-
$suffix
local py_build=
$prefix$py_version
-
$suffix
local py_zip=
$py_build
.tar.bz2
local py_zip=
$py_build
.tar.bz2
local zip_path=
$DOWNLOADS_SDIR
/
$py_zip
local zip_path=
$DOWNLOADS_SDIR
/
$py_zip
...
...
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