summaryrefslogtreecommitdiff
path: root/buildstream/plugins/sources/pip.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/sources/pip.py')
-rw-r--r--buildstream/plugins/sources/pip.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/buildstream/plugins/sources/pip.py b/buildstream/plugins/sources/pip.py
index abef1fd0d..9d6c40d74 100644
--- a/buildstream/plugins/sources/pip.py
+++ b/buildstream/plugins/sources/pip.py
@@ -182,10 +182,12 @@ class PipSource(Source):
packages = self.ref.strip().split('\n')
package_dir = os.path.join(tmpdir, 'packages')
os.makedirs(package_dir)
- self.call(self.host_pip + ['download',
- '--no-binary', ':all:',
- '--index-url', self.index_url,
- '--dest', package_dir] + packages,
+ self.call([*self.host_pip,
+ 'download',
+ '--no-binary', ':all:',
+ '--index-url', self.index_url,
+ '--dest', package_dir,
+ *packages],
fail="Failed to install python packages: {}".format(packages))
# If the mirror directory already exists, assume that some other