3 ms·
No, not quite. It depends on if the library is pure python. If it is, then adding support for pip install is possible, but not implemented. If it's not pure
by mturk 12y ago
No, not quite. It depends on if the library is pure python. If it is, then adding support for pip install is possible, but not implemented. If it's not pure python, it is a lot harder -- it has to be statically linked into the PNaCl executable, which sometimes requires a bit of patching the code. For example, to get pandas in, I had to modify how it included np_datetime, and to get HDF5 in I had to pre-generate how it managed endianness.
That being said, I've been working on making it easier for pure python importing, and one fun thing is that you can actually mount an HTTP/CORS-accessible endpoint as a file system and import that. I have done this with a pastebin; I turned on CORS, mounted it inside the NaCl kernel, and executed pastes.