Python2 plugin deprecated, but new plugin not documented?

Wes Mason wesley.mason at canonical.com
Tue Oct 4 11:19:51 UTC 2016


On Tue, 4 Oct 2016 at 04:00 Marco Ceppi <marco.ceppi at canonical.com> wrote:

> On Mon, Oct 3, 2016 at 9:41 PM Sergio Schvezov <
> sergio.schvezov at canonical.com> wrote:
>
> El 03/10/16 a las 21:17, Marco Ceppi escribió:
>
> On Mon, Oct 3, 2016 at 6:51 PM Sergio Schvezov <
> sergio.schvezov at canonical.com> wrote:
>
>
>
> El 03/10/16 a las 16:47, Marco Ceppi escribió:
> > Hi Sergio,
> >
> > Sorry, replication instructions are as follows:
> >
> > export JUJU_REPOSITORY=$(mktemp -dp $HOME)
> > cd $JUJU_REPOSITORY
> > charm pull-source ~marcoceppi/charm-svg .
> >
> > This will trigger the error. Anytime the code path needs to interact
> > with launchpadlib it fails. If you pull the stable channel from the
> > store you'll see it succeeds.
>
> Did this ever work?
> dpkg -S /usr/lib/python2.7/dist-packages/lazr/__init__.py
>
>
> It did (and does work) before I updated snapcraft.
>
>
> Tells me it is not owned by any package so very unlikely that a
> `stage-packages entry would of brought it in. I am interested!
>
> For what it's worth, Kyle had the same issue and we just went to pypi
> for this, if you prefer going down this path just add this to the python
> part in there:
>
> python-packages: [launchpadlib, simplejson]
>
>
> Launchpadlib is already a dependency in the software project, I shouldn't
> need to declare it again in the snapcraft?
>
>
> No you don't ;-) You want to set `requirements: requirements.txt`
> If you want it automatically installed use install_requires (
> https://packaging.python.org/requirements/)
>
> In my projects setup.py I declare the install_requires, why aren't these
> being included during snap generation?
>
> https://github.com/juju/charm-tools/blob/master/setup.py
>

Because when you delcare python-launchpadlib in your stage-packages those
are pulled in by apt first, and when pip comes to install it it goes "okay
I can see this in sys packages, I'll skip installing it".


>
>
>
>
>
>
> and remove the corresponding entry from `stage-packages`. That makes
> this happen:
>
> $ charm pull-source ~marcoceppi/charm-svg .
> Downloaded cs:~marcoceppi/charm-svg to
> /home/sergiusens/tmp.fTqwALsTzT/charm-svg
>
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161004/f4e74a16/attachment.html>


More information about the Snapcraft mailing list