pythonnumpygoogle-nativeclientppapi

How do I use the Python modules in webports/naclports with the Python interpreter Chrome app?


Webports has projects in the ports directory for Python and several Python modules, including NumPy. The "python" port compiles a Chrome app that runs the Python interpreter in a console window. I'd like to be able to use modules that include native code, like NumPy, in that interpreter.

Here's what I've tried:

I'm using the PNaCL toolchain version pepper_47 inside a Docker container to build the packages, and I'm running the Python app on Chrome 47.0.2526.106 (64-bit) on Xubuntu.


Solution

  • The raw python port doesn't catch it, but the numpy port was designed to be used with the python-static port, which will build using the modules that have previously been built. This will then assemble a unified static library that will be linked into the .pexe for python. You shouldn't need to copy any module components by hand.