Python2 plugin deprecated, but new plugin not documented?

Sergio Schvezov sergio.schvezov at canonical.com
Mon Oct 3 17:19:51 UTC 2016


El 02/10/16 a las 11:05, Marco Ceppi escribió:
> Hello,
>
> I'm trying to do another clean build of my snap, this is a 0 change 
> build, but I've got a few problems. After updating to the latest 
> snapcraft (2.18.1), I'm getting a few new error messages and a snap 
> that's 1/2 the size but no longer works.
>
> > "grade" property not specified: defaulting to "stable"
>
> The only reference I can find to grade anywhere is a bug requesting it 
> be implemented

This will be addressed in the next release! Thanks for bringing it up.

>
> > DEPRECATED: The 'python2' plugin's functionality has been replaced 
> by the 'python' plugin, and it will soon be removed.

This message is rather confusing, I will fix it.

>
> However, http://snapcraft.io/docs/reference/plugins/ does not list the 
> python plugin.
>
> Finally, my snap is 1/2 the size (woot) but does not work. 
> Dependencies which were being brought in previously are no longer 
> showing up. I'm not sure if this is because I should be using the new 
> python plugin or if something else has changed.

The previous version of the plugin had some deficiencies that did not 
allow for it to scale. I rewrote the whole thing after reading many of 
the python system documentation and taking a peek at venv/virtualenv.

>
> I'll be trying to chase down the last issue, but it's hard without 
> documentation for the first two.

Those warnings are taking you down the wrong path. I can help if you 
give me more info to work with :-)




More information about the Snapcraft mailing list