Last active
July 24, 2017 17:31
-
-
Save mattip/32fcd53ca8b44cefe25cb452a40f16d3 to your computer and use it in GitHub Desktop.
run numpy with pyinteractive
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
UPDATE: this no longer works. | |
build, install numpy on pypy | |
copy pkg_resources, numpy-1.*, easy-install.pth from pypy/site-packages to /tmp/numpy | |
in pypy/module/cpyext/api.py change all 'cpyexttest' to 'PyPy' | |
then run | |
python pypy/bin/pyinteractive.py --withmod-struct --withmod-binascii --withmod-zipimport --withmod-_socket --withmod-cpyext --withmod-_cffi_backend --withmod-_rawffi --withmod-signal -c "import sys; sys.path.append('/tmp/numpy'); import numpy as np" | |
pypy startup is about 35 secs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment