Re: Archive type for PYZ packages without extraction
mario <[email protected]>
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <[email protected]> |
And thanks again! Seems to run just fine now. And I guess for the Windows runner http://0install.de/feeds/Python.xml, it's perhaps simpler to default to the older .pyw extension, which it's already registered as file-type handler for. Fri, 15 May 2015 02:43:32 +0200 "Bastian Eicher" <[email protected]>: > Ah yes, I completely forgot that <file> doesn't set the executable > bit. @Thomas: Maybe a <file executable="true" ...> attribute would be > a useful extension for a future 0install release? > > You are right though, the 0install-y solution is to use a special > kind of binding for this, called a "runner". Something roughly like > this: > > <implementation ...> > <file ... /> > <command name="run" path="streamtuner2.pyz"> > <runner interface="http://repo.roscidus.com/python/python"/> > </command> > </implementation> > > The <command> tag replaces the main="..." attribute and allows you to > add additional stuff like the <runner> binding. Unlike <require> > bindings a <runner> must be placed inside a <command>. It tells Zero > Install to pass the command's path to the runner (in this case the > Python binary) as a command-line argument. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y