For pypy 2.5.1, the default buiding of libpypy-c.so is about 99MB.
To my understanding, libypypy.so includes standard python libs.
If we don't need some of those libs, could we exclude libs from building?
For one thing, we might be able to get  smaller libpypy.so lib.
And for the other, we might exclude some *dangerous* lib that we don't
need. ( Certainly, the more safer way is to use sandbox).

>From pypy/config/pypyoption.py file, we found the below code:
working_modules.update([
    "_socket", "unicodedata", "mmap", "fcntl", "_locale", "pwd", "time" ,
    "select", "zipimport", "_lsprof", "crypt", "signal", "_rawffi",
"termios",
    "zlib", "bz2", "struct", "_hashlib", "_md5", "_sha", "_minimal_curses",
    "cStringIO", "thread", "itertools", "pyexpat", "_ssl", "cpyext",
"array",
    "binascii", "_multiprocessing", '_warnings', "_collections",
    "_multibytecodec", "micronumpy", "_continuation", "_cffi_backend",
    "_csv", "cppyy", "_pypyjson"
])

If we would like to exclude some modules, could we modify this list?
Further, is it possible to exclude some functions from modules?
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to