From: W. Trevor King Date: Sun, 30 Dec 2012 16:37:10 +0000 (-0500) Subject: swc-installation-test-2.py: `PythonDependency`s should depend on Python X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8cb20f475e9f0a99f88cd9ae08c4e74191379627;p=swc-workshop.git swc-installation-test-2.py: `PythonDependency`s should depend on Python --- diff --git a/swc-installation-test-2.py b/swc-installation-test-2.py index d07fcc5..34daeec 100755 --- a/swc-installation-test-2.py +++ b/swc-installation-test-2.py @@ -287,6 +287,10 @@ class PythonPackageDependency (Dependency): def __init__(self, package, **kwargs): if 'name' not in kwargs: kwargs['name'] = package + if 'and_dependencies' not in kwargs: + kwargs['and_dependencies'] = [] + if 'python' not in kwargs['and_dependencies']: + kwargs['and_dependencies'].append('python') super(PythonPackageDependency, self).__init__(**kwargs) self.package = package