From: Bastian E. <ba...@ei...> - 2015-05-15 00:43:44
|
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. -----Original Message----- From: mario [mailto:ma...@fr...ub] Sent: Freitag, 15. Mai 2015 01:41 To: zer...@li... Subject: Re: [Zero-install-devel] Archive type for PYZ packages without extraction Ha okay, thanks. That works as expected indeed. Albeit it just downloads the file. 0launch can't run it within the .cache/0install.net/implementations/ cache dir, as the +x bit remains unset for the PYZ. It seems <recipe> doesn't help with that either. So it's probably one of those "bindings" that would run it through another package implementation? (Apologies, I don't comprehend much of the docs still.) Is there perhaps a sample feed on 0install.de that utilizes one of the existing Python packages properly? (As far as I can tell, the Netbeans packages for example just utilize an environment variable, but don't start via OpenJDK runtime as such.) |