2015-05-18 16:09 GMT+03:00 Yicong Huang <hengha....@gmail.com>:
> In the document, it said all the script's dependency should copy along to
> the directory.
> Do all python lib scripts need to copy as well?

No, available stdlib modules should work.

> We didn't put hashlib.py to the direcoty, but it looks like sandbox is able
> to find hashlib.py.
> However, it miss the dependency of "time" module.
> How shall we solve the issue?
>

Not all stdlib modules are included with sandbox by default (and not
all will work), and I don't think a general solution exists. For
example, we needed datetime.datetime.str[fp]time functions, and what
we do (for 2.3.1) is translate with "--withmod-time --withmod-struct"
options added, and then in order to use datatime.datetime module we
bundle a pure-python replacement. You might also need to add some
support for functions that do external calls.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to