Created
August 26, 2017 00:33
-
-
Save beattidp/b94ddf8d0c044b57eb46fe2a643aaf13 to your computer and use it in GitHub Desktop.
Build PyPy on Mac OS X El Capitan 10.11.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build PyPy on Mac OS X El Capitan 10.11.6 | |
# re. http://pypy.readthedocs.io/en/latest/build.html | |
cd ~/Downloads/ | |
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-src.tar.bz2 | |
cd /tmp/ | |
tar -xjf ~/Downloads/pypy2-v5.8.0-src.tar.bz2 | |
cd pypy2-v5.8.0-src/pypy/goal/ | |
python ../../rpython/bin/rpython -Ojit targetpypystandalone | |
# And a long time later the build completes | |
export CFLAGS="-L/opt/local/lib -I/opt/local/include" | |
PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py | |
pushd ../tool/release/ | |
# $ echo "-$(uname -s)-$(uname -r)-$(uname -m)" | |
# -Darwin-15.6.0-x86_64 | |
./package.py --archive-name=pypy-v5.8.0-$(uname -s)-$(uname -r)-$(uname -m) | |
# Ready in /var/folders/t8/gyd85gj96pz9ffn3qc2ty_rw0000gr/T/usession-release-pypy2.7-v5.8.0-1/build | |
# See last line of output from previous command; your destination will be different | |
pushd /var/folders/*/*/*/usession-release-pypy2.7-v5.8.0-1/build/ | |
cp pypy-v5.8.0-Darwin-15.6.0-x86_64.tar.bz2 ~/Downloads/. | |
mv pypy-v5.8.0-Darwin-15.6.0-x86_64 /opt/. | |
sudo ln -s /opt/pypy-v5.8.0-Darwin-15.6.0-x86_64/bin/pypy /opt/local/bin/pypy | |
# $ pypy --version | |
# Python 2.7.13 (c925e73810367cd960a32592dd7f728f436c125c, Aug 23 2017, 17:30:59) | |
# [PyPy 5.8.0 with GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] | |
pypy -m ensurepip | |
sudo ln -s /opt/pypy-v5.8.0-Darwin-15.6.0-x86_64/bin/pip /opt/local/bin/pypip | |
pypip -v freeze |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment