Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
3ae39701
Unverified
Commit
3ae39701
authored
Jun 14, 2022
by
Ho Kim
Committed by
GitHub
Jun 14, 2022
Browse files
Options
Downloads
Patches
Plain Diff
Add arm64 Flatcar OS's pypy bootstrapping (#8959)
- Upgrade pypy's python version to `3.9` - Upgrade pypy`s version to `7.3.9`
parent
7d3e59cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/bootstrap-os/files/bootstrap.sh
+24
-8
24 additions, 8 deletions
roles/bootstrap-os/files/bootstrap.sh
with
24 additions
and
8 deletions
roles/bootstrap-os/files/bootstrap.sh
+
24
−
8
View file @
3ae39701
...
...
@@ -2,23 +2,39 @@
set
-e
BINDIR
=
"/opt/bin"
PYPY_VERSION
=
7.3.2
PYPI_URL
=
"https://downloads.python.org/pypy/pypy3.6-v
${
PYPY_VERSION
}
-linux64.tar.bz2"
PYPI_HASH
=
d7a91f179076aaa28115ffc0a81e46c6a787785b2bc995c926fe3b02f0e9ad83
if
[[
-e
$BINDIR
/.bootstrapped
]]
;
then
exit
0
fi
ARCH
=
$(
uname
-m
)
case
$ARCH
in
"x86_64"
)
PYPY_ARCH
=
linux64
PYPI_HASH
=
46818cb3d74b96b34787548343d266e2562b531ddbaf330383ba930ff1930ed5
;;
"aarch64"
)
PYPY_ARCH
=
aarch64
PYPI_HASH
=
2e1ae193d98bc51439642a7618d521ea019f45b8fb226940f7e334c548d2b4b9
;;
*
)
echo
"Unsupported Architecture:
${
ARCH
}
"
exit
1
esac
PYTHON_VERSION
=
3.9
PYPY_VERSION
=
7.3.9
PYPY_FILENAME
=
"pypy
${
PYTHON_VERSION
}
-v
${
PYPY_VERSION
}
-
${
PYPY_ARCH
}
"
PYPI_URL
=
"https://downloads.python.org/pypy/
${
PYPY_FILENAME
}
.tar.bz2"
mkdir
-p
$BINDIR
cd
$BINDIR
if
[[
-e
$BINDIR
/.bootstrapped
]]
;
then
exit
0
fi
TAR_FILE
=
pyp.tar.bz2
wget
-O
"
${
TAR_FILE
}
"
"
${
PYPI_URL
}
"
echo
"
${
PYPI_HASH
}
${
TAR_FILE
}
"
|
sha256sum
-c
-
tar
-xjf
"
${
TAR_FILE
}
"
&&
rm
"
${
TAR_FILE
}
"
mv
-n
"
pypy3.6-v
${
PYPY_VERSION
}
-linux64
"
pypy3
mv
-n
"
${
PYPY_FILENAME
}
"
pypy3
ln
-s
./pypy3/bin/pypy3 python
$BINDIR
/python
--version
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment