Re: [easybuild] Python multi_deps and dependencies.

2020-09-28 Thread Sam Moors
Dear Yann,

As long as you add a version of wcwidth that supports both python versions,
you're fine.
To add it, you have to convert the easyconfig from a PythonPackage to a
PythonBundle, and add it as an extension to the exts_list.
For the syntax you can take any other PythonBundle easyconfig as an example.

Hope this helps
Sam

On Mon, Sep 28, 2020 at 5:26 PM Yann Sagon  wrote:

> Dear list,
>
> I'm trying to build DendroPy-4.4.0-GCCcore-8.3.0.eb.
>
> This produces the following error:
>
> == 2020-09-25 18:20:50,773 build_log.py:169 ERROR EasyBuild crashed with an 
> error (at easybuild/base/exceptions.py:124 in __init__): cmd "pip check" 
> exited with exit code 1 and output:
> DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
> Please upgrade your Python as Python 2.7 won't be maintained after that date. 
> A future version of pip will drop support for Python 2.7. More details about 
> Python 2 support in pip, can be found at 
> https://pip.pypa.io/en/latest/development/release-process/#python-2-support
> pytest 4.6.5 requires wcwidth, which is not installed.
>  (at easybuild/tools/run.py:533 in parse_cmd_output)
>
> I wanted to add wcwidth as dependency to the eb file, but as it's using
> multi_deps, I don't know how to proceed. Do I have to specify a version for
> python 2.7.16 and Python 3.7.4? And what is the syntax?
>
> Best
>
> Yann
> --
>
>   [image: Logo UNIGE] Yann Sagon
> Référent HPC
>
> Division du système et des technologies de l'information et de la
> communication
> Université de Genève | 24 rue Général-Dufour
> Tél 022 379 77 37 | Bureau 151
>
> www.unige.ch/stic
>


[easybuild] Python multi_deps and dependencies.

2020-09-28 Thread Yann Sagon

Dear list,

I'm trying to build DendroPy-4.4.0-GCCcore-8.3.0.eb.

This produces the following error:

== 2020-09-25 18:20:50,773 build_log.py:169 ERROR EasyBuild crashed with an error (at 
easybuild/base/exceptions.py:124 in __init__): cmd "pip check" exited with exit 
code 1 and output:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 won't be maintained after that date. A 
future version of pip will drop support for Python 2.7. More details about 
Python 2 support in pip, can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pytest 4.6.5 requires wcwidth, which is not installed.
 (at easybuild/tools/run.py:533 in parse_cmd_output)

I wanted to add wcwidth as dependency to the eb file, but as it's using 
multi_deps, I don't know how to proceed. Do I have to specify a version 
for python 2.7.16 and Python 3.7.4? And what is the syntax?


Best

Yann

--

Logo UNIGE  Yann Sagon
Référent HPC

Division du système et des technologies de l'information et de la 
communication

Université de Genève | 24 rue Général-Dufour
Tél 022 379 77 37 | Bureau 151

www.unige.ch/stic