thp / pyotherside

Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
https://thp.io/2011/pyotherside/
Other
365 stars 48 forks source link

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

Open thp opened 10 years ago

thp commented 10 years ago

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 commented 9 years ago

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

thp commented 9 years ago

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

zyga commented 9 years ago

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 notifications@github.com:

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.