Note that there are some explanatory texts on larger screens.

plurals
  1. POBundle a Python app as a single file to support add-ons or extensions?
    primarykey
    data
    text
    <p>There are several utilities — all with different procedures, limitations, and target operating systems — for getting a Python package and all of its dependencies and turning them into a single binary program that is easy to ship to customers:</p> <ul> <li><a href="http://wiki.python.org/moin/Freeze" rel="noreferrer">http://wiki.python.org/moin/Freeze</a></li> <li><a href="http://www.pyinstaller.org/" rel="noreferrer">http://www.pyinstaller.org/</a></li> <li><a href="http://www.py2exe.org/" rel="noreferrer">http://www.py2exe.org/</a></li> <li><a href="http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html" rel="noreferrer">http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html</a></li> </ul> <p>My situation goes one step further: third-party developers will be wanting to write plug-ins, extensions, or add-ons for my application. It is, of course, a daunting question how users on platforms like Windows would most easily install plugins or addons in such a way that my app can easily discover that they have been installed. But beyond that basic question is another: how can a third-party developer bundle their extension with whatever libraries the extension itself needs (which might be binary modules, like lxml) in such a way that the plugin's dependencies become available for import at the same time that the plugin becomes available.</p> <p>How can this be approached? Will my application need its own plug-in area on disk and its own plug-in registry to make this tractable? Or are there general mechanisms, that I could avoid writing myself, that would allow an app that is distributed as a single executable to look around and find plugins that are also installed as single files?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload