Python2 plugin deprecated, but new plugin not documented?
Sergio Schvezov
sergio.schvezov at canonical.com
Tue Oct 4 01:40:58 UTC 2016
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 <mailto: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/)
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161003/b7ff19db/attachment.html>
More information about the Snapcraft
mailing list