Ubuntu Pastebin

Paste from sergiusens at Thu, 17 Sep 2015 22:22:38 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
=== modified file 'snapcraft/plugins/python3_project.py'
--- snapcraft/plugins/python3_project.py	2015-09-16 13:07:39 +0000
+++ snapcraft/plugins/python3_project.py	2015-09-17 22:21:43 +0000
@@ -24,6 +24,10 @@
     # note that we don't need to setup env(), python figures it out
     # see python3.py for more details
 
+    def env(self, root):
+        return ["PYTHONPATH=%s" % os.path.join(
+            root, 'usr', 'lib', 'python3', 'dist-packages')]
+
     def pull(self):
         return self.handle_source_options()
 

=== modified file 'snapcraft/yaml.py'
--- snapcraft/yaml.py	2015-09-17 15:14:49 +0000
+++ snapcraft/yaml.py	2015-09-17 22:14:49 +0000
@@ -181,15 +181,15 @@
 
         env = []
 
-        env += part.env(part.installdir)
-        env += self.runtime_env(part.installdir)
-        env += self.build_env(part.installdir)
-
         for dep in part.deps:
             root = dep.installdir
             env += dep.env(root)
             env += self.build_env_for_part(dep)
 
+        env += part.env(part.installdir)
+        env += self.runtime_env(part.installdir)
+        env += self.build_env(part.installdir)
+
         return env
 
     def stage_env(self):
Download as text