By that I mean that it is possible to import modules from the standard library, but a lot of system calls won't be available. Sqlite works for in-memory use.
The changes needed to make this work were quite minor:
- Changing fstat() in NaCl so that it doesn't return a fixed inode number. Python uses st_ino to determine whether an extension module is the same as a previously-loaded module, which doesn't work if st_ino is the same for different files.
- Some tweaks to nacl-glibc-gcc, a wrapper script for nacl-gcc.
- Ensuring that NaCl-glibc's libpthread.so works.