summaryrefslogtreecommitdiff
path: root/buildstream/_sourcefactory.py
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2017-11-22 17:15:15 +0000
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-12-13 13:17:28 -0500
commit4912ed5f8922b47c1a16c3752eb92a3f1dea76b2 (patch)
treeb75e7a995ded65278c7f5c8d9e78c204219f155c /buildstream/_sourcefactory.py
parent030b8fb0eff2ba101f67509004d41d717ab8c2a4 (diff)
downloadbuildstream-4912ed5f8922b47c1a16c3752eb92a3f1dea76b2.tar.gz
Make external plugin loading require explicit configuration in project.conf
In addition, it changes the "plugins" and "required-versions" fields, combining them for plugins and adding a new "required-project-version" field.
Diffstat (limited to 'buildstream/_sourcefactory.py')
-rw-r--r--buildstream/_sourcefactory.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/buildstream/_sourcefactory.py b/buildstream/_sourcefactory.py
index 3461ed2ff..09bf1b04a 100644
--- a/buildstream/_sourcefactory.py
+++ b/buildstream/_sourcefactory.py
@@ -28,17 +28,13 @@ from .source import Source
#
# Args:
# plugin_base (PluginBase): The main PluginBase object to work with
-# searchpath (list): Search path for external Source plugins
+# plugin_origins (list): Data used to search for external Source plugins
#
class SourceFactory(PluginContext):
- def __init__(self, plugin_base, searchpath=None):
+ def __init__(self, plugin_base, plugin_origins=None):
- if searchpath is None:
- searchpath = []
-
- searchpath.insert(0, _site.source_plugins)
- super().__init__(plugin_base, Source, searchpath)
+ super().__init__(plugin_base, Source, [_site.source_plugins], plugin_origins)
# create():
#