Use the in ubuntu-core python3 #510

Closed
wants to merge 5 commits into
from

Conversation

Projects
None yet
3 participants
Collaborator

sergiusens commented May 23, 2016

LP: #1582513

Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

kyrofa and others added some commits May 24, 2016

Add support for confinement property. (#501)
Snaps need to be able to specify if they require devmode or if they can
be run confined. This will allow for snapd to provide reasonable errors
if one tries to install a snap that cannot run successfully under
confinement. This commit adds the "confinement" property, which is
required and must be one of "enabled" or "devmode." `snapcraft init`
generates a YAML that sets "confinement" to "devmode."

LP: #1580819

Signed-off-by: Kyle Fazzari <kyle@canonical.com>
Use the in ubuntu-core python3
LP: #1582513

Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
snapcraft/plugins/python3.py
'python3-pkg-resources',
'python3-setuptools',
])
def env(self, root):
return [
- 'PYTHONPATH={}'.format(os.path.join(
+ 'PYTHONPATH={0}'.format(os.path.join(
@kyrofa

kyrofa May 24, 2016

Member

Is there a reason to use {0} instead of {} here?

@sergiusens

sergiusens May 24, 2016

Collaborator

left over from when I tried to use : with multiple entries, so no :-)

Collaborator

sergiusens commented May 24, 2016

retest this please

Collaborator

sergiusens commented May 24, 2016

all green 💯

Member

kyrofa commented May 24, 2016

all green 💯

Can you really celebrate that when your tests look like this? 😛

Collaborator

sergiusens commented May 24, 2016

@kyrofa I celebrate the fact that the infrastructure work and there was no regression! 😉

Member

kyrofa commented May 24, 2016

Hahaha

Member

elopio commented Jun 24, 2016

alright, this seems to simplify the code a lot. Do we need a review from a python/pip expert?

You need to readd the tests for py3, and rebase with master.

@sergiusens sergiusens closed this Aug 31, 2016

@sergiusens sergiusens deleted the sergiusens:feature/1582513/use-in-ubuntu-core-python3 branch Mar 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment