On 09/26/2017 10:49 PM, Paul Moore wrote: > On 26 September 2017 at 19:47, Irmen de Jong <ir...@nospam.xs4all.nl> wrote: >> Any thoughts on this? Is it a good idea or something horrible? Has >> someone attempted something like this before perhaps? > > When I've done this, I've bundled my dependencies in with my zipapp. > Of course that's trickier if you have binary dependencies like pillow.
Yeah I've considered that for a moment but I think sometimes you've also got to deal with licensing issues. I'd rather avoid this. > What you could do is pip install your binary dependencies into a > directory in $TEMP using --target, then add that directory to > sys.path. Probably easier than building a full virtualenv. Bundle pip > with your app if you can't assume your users will have pip available. Interesting idea, although like this wouldn't I have to download the dependencies every time I launch my game? (unless I re-use the same temporary directory every time) Irmen -- https://mail.python.org/mailman/listinfo/python-list