pyotherside icon indicating copy to clipboard operation
pyotherside copied to clipboard

Ship Python Standard Library as .zip appended to plugin .so

Open thp opened this issue 10 years ago • 3 comments

Right now, on Android, we ship the Python Standard Library in the Qt Resource System and extract it on first start. Instead of this, it should be possible to append the .zip directly to the PyOtherSide plugin .so and then add the .so filename (obtained via dladdr(3) for example) to the PYTHONPATH.

thp avatar Nov 12 '14 06:11 thp

http://stackoverflow.com/questions/1681060/library-path-when-dynamically-loaded

thp avatar Jan 14 '15 22:01 thp

Some work on this here, but it's crashing for me at the moment on Android, not sure why: https://github.com/thp/pyotherside/commit/d931071fbd8204b1e783e4345c84b508efb79fc1 https://github.com/thp/pyotherside/commit/2378495fa960c1d3de1b1b722e57241728605e46

thp avatar Mar 05 '15 21:03 thp

Hey.

I'm interested in doing this for Ubuntu Touch. Since we have all the normal tools perhaps it will be easier to debug. I'll take a look.

2015-03-05 22:00 GMT+01:00 Thomas Perl [email protected]:

Some work on this here, but it's crashing for me at the moment on Android, not sure why: d931071 https://github.com/thp/pyotherside/commit/d931071fbd8204b1e783e4345c84b508efb79fc1 2378495 https://github.com/thp/pyotherside/commit/2378495fa960c1d3de1b1b722e57241728605e46

— Reply to this email directly or view it on GitHub https://github.com/thp/pyotherside/issues/30#issuecomment-77450555.

zyga avatar Mar 06 '15 07:03 zyga