Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

update to pypy 5.6, smarter pip installation #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions files/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ if [[ -e $HOME/.bootstrapped ]]; then
exit 0
fi

PYPY_VERSION=5.1.0
PYPY_VERSION=5.6.0

if [[ -e $HOME/pypy-$PYPY_VERSION-linux64.tar.bz2 ]]; then
tar -xjf $HOME/pypy-$PYPY_VERSION-linux64.tar.bz2
rm -rf $HOME/pypy-$PYPY_VERSION-linux64.tar.bz2
if [[ -e $HOME/pypy2-v$PYPY_VERSION-linux64.tar.bz2 ]]; then
tar -xjf $HOME/pypy2-v$PYPY_VERSION-linux64.tar.bz2
rm -rf $HOME/pypy2-v$PYPY_VERSION-linux64.tar.bz2
else
wget -O - https://bitbucket.org/pypy/pypy/downloads/pypy-$PYPY_VERSION-linux64.tar.bz2 |tar -xjf -
wget -O - https://bitbucket.org/pypy/pypy/downloads/pypy2-v$PYPY_VERSION-linux64.tar.bz2 |tar -xjf -
fi

mv -n pypy-$PYPY_VERSION-linux64 pypy
# remove, because otherwise this version will get placed into a subdir of an existing pypy/
rm -rf pypy
mv -f pypy2-v$PYPY_VERSION-linux64 pypy

## library fixup
mkdir -p pypy/lib
Expand All @@ -27,10 +29,11 @@ mkdir -p $HOME/bin

cat > $HOME/bin/python <<EOF
#!/bin/bash
LD_LIBRARY_PATH=$HOME/pypy/lib:$LD_LIBRARY_PATH exec $HOME/pypy/bin/pypy "\$@"
PYTHONPATH=/home/core/pypy/lib-python/2.7/:$PYTHONPATH LD_LIBRARY_PATH=$HOME/pypy/lib:$LD_LIBRARY_PATH exec $HOME/pypy/bin/pypy "\$@"
EOF

chmod +x $HOME/bin/python
$HOME/bin/python --version
$HOME/bin/python -m ensurepip

touch $HOME/.bootstrapped
Loading