Skip to content

Instantly share code, notes, and snippets.

@mattip
Last active July 24, 2017 17:31
Show Gist options
  • Save mattip/32fcd53ca8b44cefe25cb452a40f16d3 to your computer and use it in GitHub Desktop.
Save mattip/32fcd53ca8b44cefe25cb452a40f16d3 to your computer and use it in GitHub Desktop.
run numpy with pyinteractive
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