=== 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):