Skip to content

Commit 1d189b9

Browse files
committed
Python 2 does not work, version 3 does
1 parent 59d1ff4 commit 1d189b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

easybuild/tools/containers/singularity.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ def resolve_template_data(self):
272272
# EPEL is required for installing Lmod & python-pip
273273
'epel-release',
274274
# EasyBuild requirements
275-
'python setuptools Lmod',
276-
# pip is used to install EasyBuild packages
277-
'python-pip',
275+
'python3 setuptools Lmod',
276+
# pip3 is used to install EasyBuild packages
277+
'python3-pip',
278278
# useful utilities
279279
'bzip2 gzip tar zip unzip xz', # extracting sources
280280
'curl wget', # downloading
@@ -308,13 +308,13 @@ def resolve_template_data(self):
308308
template_data['install_os_deps'] = '\n'.join(install_os_deps)
309309

310310
# install (latest) EasyBuild in container image
311-
# use 'pip install', unless custom commands are specified via 'install_eb' keyword
311+
# use 'pip3 install', unless custom commands are specified via 'install_eb' keyword
312312
if 'install_eb' not in template_data:
313313
template_data['install_eb'] = '\n'.join([
314-
"# install EasyBuild using pip",
314+
"# install EasyBuild using pip3",
315315
# upgrade pip
316-
"pip install -U pip",
317-
"pip install easybuild",
316+
"pip3 install -U pip",
317+
"pip3 install easybuild",
318318
])
319319

320320
# if no custom value is specified for 'post_commands' keyword,

0 commit comments

Comments
 (0)