On 09/01/2023 15:21, Maxime Boissonneault wrote:
Hi Arna,
I think this option is only supported for PythonPackage.
No, that's incorrect. Any easyconfig parameter that can be set when
using PythonPackage as easyblock can also be set when using PythonBundle
(except for 'sources').
If "foo" is set top-level in an easyconfig using PythonBundle, then all
extensions listed via exts_list (which are installed using
PythonPackage) will inherit that setting (so it only has to be set once)
- this is often used for 'use_pip = True' for example.
K.
This is where
we use it, for example:
https://github.com/ComputeCanada/easybuild-easyconfigs/blob/computecanada-main/easybuild/easyconfigs/s/SciPy-Stack/SciPy-Stack-2022a-GCCcore-9.3.0.eb
Best,
Maxime Boissonneault
Le 2023-01-09 à 08:53, Arnau a écrit :
Dear all,
I'd like to install a bunch of python packages from a requirements.txt
instead of listing each of them as extension. So I'd like to use the
use_pip_requirement option.
According to the doc :
install using ‘python -m pip install –requirement’. The sources is
expected to be the requirements file.
but as soon as I add the sources to point to the requirements file EB
complains with the error:
" List of sources for bundle itself must be empty, found
['requirements.txt']"
If I do not add any sources at all, it does not install anythings at all.
so, what is the correct way of using this option in a PythonBundle?
(eb 4.6.2)
TIA,
Arna