Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Download pypy-nightly
#!/bin/bash
set -e
# Download pypy builds and create virtualenvs
BRANCHES=(trunk py3.5)
for BRANCH in "${BRANCHES[@]}"
do
DEST_DIR=~/pypy-nightly/${BRANCH}
VENV=~/.virtualenvs/pypy-nightly-${BRANCH}
PLATFORM=linux64
VARIANT=pypy-c-jit
BUILD=${VARIANT}-latest-${PLATFORM}
mkdir -p ${DEST_DIR}
cd ${DEST_DIR}
CURL_ARGS="-#LOC - http://buildbot.pypy.org/nightly/${BRANCH}/${BUILD}.tar.bz2"
if [ -f "${BUILD}.tar.bz2" ]; then
CURL_ARGS="-z ${BUILD}.tar.bz2 ${CURL_ARGS}"
fi
curl ${CURL_ARGS}
tar -jxpf ${BUILD}.tar.bz2
ln `tar -tf ${BUILD}.tar.bz2 | head -1` ${BUILD} -sf
# echo $(readlink ${BUILD})
set -- ${DEST_DIR}/${BUILD}/bin/pypy*
PYPY_BIN=$1
/usr/bin/virtualenv ${VENV} -p ${PYPY_BIN} -q --clear | true
done
Owner

stuaxo commented Sep 10, 2017

Support separate versions of pypy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment