there are compilation options like --withoutmod-_md5 and so on. No, you can't disable single functions.
On Tue, May 19, 2015 at 7:29 AM, Yicong Huang <hengha....@gmail.com> wrote: > 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 > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev > _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev