<div dir="ltr">Hello Michael,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 28, 2016 at 5:42 PM, Michael Foley <span dir="ltr"><<a href="mailto:michael.foley@canonical.com" target="_blank">michael.foley@canonical.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I've started working on a few snaps last month and worked out how to<br>
build an initial snap of the gpodder podcast client.  However in order<br>
to get it to build I had to do a few manual steps during the build<br>
step.  This is a python2 application, but actually uses a makefile.  I<br>
tried a few different tactics including trying to use the make plugin,<br>
but that does not create the command wrapper properly.<br></blockquote><div><br></div><div>That seems to be a common approach for upstream projects. I've seen many go projects directed by a Makefile that doesn't set the GOPATH, so it requires to hack our plugin. IMO, that means that the makefile is incomplete, but we will need to deal with it. So far, I've solved it by making custom plugins that combine two of snapcraft's plugins. That's not so nice for various reasons. Sometimes you only need to add a command to an existing plugin, and yet you have to copy it all. In the previous sprint we talked a little about adding hooks, and making the plugins easier to extend, but that will be a heavy burden to support in snapcraft.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And actually when I tried to rebuild my snap today the command wrapper<br>
is failing to find and exec gpodder.  I think the command wrapper is no<br>
longer setting the PYTHONPATH.  Has this changed in the python2 plugin.<br>
I see that is deprecated so tried the python plugin with<br>
"python-version: python2", but got the same result.<br></blockquote><div><br></div><div>We changed the python plugins completely in one of the recent releases.</div><div>using python-version: python2 now is the same as using plugin: python2.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A copy of my snapcraft.yaml file is here:<br>
<a href="http://pastebin.ubuntu.com/23248926/" rel="noreferrer" target="_blank">http://pastebin.ubuntu.com/<wbr>23248926/</a><br>
<br>
Any suggestions on ways to work around these issues?<br><span class="gmail-HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Can you inspect the prime directory to see if the binary is now in a different place?</div><div><br></div><div>Running snapcraft on your yaml, I actually get: Missing file: share/dbus-1/services/org.gpodder.service </div><div>Did you solve that somehow?</div><div><br></div><div>pura vida</div></div><div class="gmail_signature"><div dir="ltr"><a href="http://www.ubuntu.com" target="_blank"></a><br></div></div>
</div></div>