swc-installation-test-2.py: `PythonDependency`s should depend on Python
authorW. Trevor King <wking@tremily.us>
Sun, 30 Dec 2012 16:37:10 +0000 (11:37 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 14:49:46 +0000 (09:49 -0500)
swc-installation-test-2.py

index d07fcc5224ede5f31517d4ece0a4006c03e5ad45..34daeeca8e7fe7af026a56d2c45f33ad16e2e192 100755 (executable)
@@ -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