Dear Yann,

On 05/11/2020 17:46, Yann Sagon wrote:
Dear list,

I wanted to create an EB file for EMU: http://www.popgen.dk/software/index.php/EMU

First of all, the EMU git repo doesn't provide a tag with the latest version, this is why I hardcoded the download path, maybe I can do that in a better way.

Second, to install the Python code, I should execute the following:

python setup.py build_ext --inplace


Is there an easyblock that can do that? I tried with a simple PythonPackage easyblock but it

doesn't work (no error, but the python files aren't there.)

The easiest way to achieve this is by changing the installation command via 'preinstallopts', something like this:

preinstallopts = "python setup.py build_ext --inplace && "

I recommend still trying with "use_pip = True", that should work I think (and if it doesn't try without pip, but I doubt that'll help).

"eb --trace" is your friend to reveal what EasyBuild is running while it's doing it (see https://easybuild.readthedocs.io/en/latest/Tracing_progress.html).


regards,

Kenneth



This is my current EB file:

easyblock = 'PythonPackage'

name = 'EMU'
version = '0.66'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://www.popgen.dk/software/index.php/EMU'
description = """EMU infers population structure in the presence of missingness 
and works for both haploid,
psuedo-haploid and diploid genotype datasets
"""

toolchain = {'name': 'foss', 'version': '2019b'}

source_urls = ['https://github.com']
sources = ['Rosemeis/emu/archive/a6148ec9edefee19df0fcb6dc0a8272b9e5c96bc.zip']

dependencies = [
     ('Python', '3.7.4'),
     ('SciPy-bundle', '2019.10', versionsuffix),
]

download_dep_fail = True
use_pip = False

options = {'modulename': False }

moduleclass = 'bio'

Thanks for you help, best

Yann

Reply via email to