Re: Archive type for PYZ packages without extraction

mario <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <[email protected]>
Fri, 15 May 2015 04:07:50 +0200 "Bastian Eicher" <[email protected]>:

> The http://repo.roscidus.com/python/python feed already contains a
> "pointer" to http://0install.de/feeds/Python.xml feed, so the .pyz is
> already executed by Python on Windows. However there are few issues:

Neat. This simplifies platform and dependency handling to just
a single reference then.


> * There is no Windows implementation for
> http://repo.roscidus.com/python/python-gobject. However GObject is
> already bundled with the Windows build of Python used by Zero
> Install. You can use <requires
> interface="http://repo.roscidus.com/python/python-gobject"
> os="POSIX"> to tell Zero Install not to bother with that particular
> dependency on Windows.
> 
> * Launching the .pyz on Windows fails with "ImportError: No module
> named gi" in uikit.py. Haven't look into what exactly is causing
> that. Maybe an additional dependency needs to be bundled in the .pyz
> to work on Windows?

I've just made my feed dependent on Python =>2.7 and <3 simply.
The `gi` reference is actually GObject. But it's only used on Python3.
(Added the os=POSIX constraint just in case..)

It runs snappier on Python2+PyGtk anyway. Since the Windows Python
package already bundles Gtk2 bindings, that's entirely sufficient.

Thanks again for looking into this!

 
> * You need to upload a couple of additional files in the same
> directory as
> http://fossil.include-once.org/streamtuner2/doc/trunk/dev/0-st2.xml
> for the feed to work for everyone. The .gpg file must be present for
> 0install to be able to verify the feed's signature. It will work
> without only on your local machine because your key is already in
> your GPG keyring. The .xsl and .css files make the feed look pretty
> in the browser. :)

The `interfaces.xsl` is actually present, and it seemingly worked in
WebKit/Firefox etc. But the MIME type may come out wrong, thus may
break IE for once.
Isn't the CSS embedded in the XSL? Didn't see 0publish-gui (Gtk/Linux
version) create another file. (Is there a way to override the default
`interface.xsl` filename permanently, btw?)

Uploaded the GPG right there. Though I thought that required a proper
keyserver or something? (Was just meant as temporary test setup with
those repo URLs.)

Btw, I made a second package descriptor for a strong dependency:

   http://fossil.include-once.org/streamtuner2/doc/trunk/dev/0-requests.xml

But is there a structure to embed bindings such as

   <environment insert="" mode="prepend" name="PYTHONPATH"/>

in a libraries interface/feed rather than the consuming package?


The other dependencies for ST2 are mostly optional for the next
release. It'll often run without images or HTML parser etc. if some
Python modules are absent. (Might add and mark them per importance=
attribute later..)



------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.