Skip to content

Commit 652f856

Browse files
Fix container pip install for Singularity (follow-up to #4380) (#4438)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3fa0779 commit 652f856

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/spikeinterface/sorters/container_tools.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,14 @@ def install_package_in_container(
238238
pkg = package_name
239239
if extra is not None:
240240
pkg += extra
241-
cmd = f'pip install --user --upgrade --no-input "{pkg} @ {github_url}/archive/{tag_or_version}.tar.gz"'
241+
cmd = [
242+
"pip",
243+
"install",
244+
"--user",
245+
"--upgrade",
246+
"--no-input",
247+
f"{pkg} @ {github_url}/archive/{tag_or_version}.tar.gz",
248+
]
242249
res_output = container_client.run_command(cmd)
243250

244251
elif installation_mode == "folder":

0 commit comments

Comments
 (0)