Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions easybuild/easyblocks/generic/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ def extra_options(extra_vars=None):
# see https://packaging.python.org/tutorials/installing-packages/#installing-setuptools-extras
'use_pip_extras': [None, "String with comma-separated list of 'extras' to install via pip", CUSTOM],
'use_pip_for_deps': [False, "Install dependencies using '%s'" % PIP_INSTALL_CMD, CUSTOM],
'use_pip_requirement': [False, "Install using 'pip install --requirement'. The sources is expected " +
"to be the requirements file.", CUSTOM],
'use_setup_py_develop': [False, "Install using '%s' (deprecated)" % SETUP_PY_DEVELOP_CMD, CUSTOM],
'zipped_egg': [False, "Install as a zipped eggs (requires use_easy_install)", CUSTOM],
})
Expand Down Expand Up @@ -443,6 +445,10 @@ def compose_install_command(self, prefix, extrapath=None, installopts=None):
# add --editable option when requested, in the right place (i.e. right before the location specification)
loc = "--editable %s" % loc

if self.cfg.get('use_pip_requirement', False):
# add --requirement option when requested, in the right place (i.e. right before the location specification)
loc = "--requirement %s" % loc

cmd.extend([
self.cfg['preinstallopts'],
self.install_cmd % {
Expand Down