Hi John,
On 18/04/2017 01:21, John Dey wrote:
How do you add a Python module which is a wheel (whl) when building
Python with easybuild? How can a Python wheel be installed as part of
the exts_list ?
This is a small section of my Python easyconfig file.
use_pip = True
exts_list = [
...
('ont_albacore', '1.0.2', {
'source_tmpl':
'ont_albacore-1.0.2-cp35-cp35m-manylinux1_x86_64.whl',
'source_urls':
['https://pypi.python.org/packages/source/o/ont_albacore'
<https://pypi.python.org/packages/source/o/ont_albacore%27>],
}),
...
]
== 2017-04-17 15:14:38,162 filetools.py:975 INFO Creating directory
/app/easybuild/build/Python/2.7.13/foss-2016b-fh1/ont_albacore
(parents: True, set_gid: False, sticky: False)
== 2017-04-17 15:14:38,274 build_log.py:147 ERROR EasyBuild crashed
with an error (at
easybuild/software/EasyBuild/3.0.2/lib/python2.7/site-packages/vsc_base-2.5.5-py2.7.egg/vsc/utils/exceptions.py:124
in __init__): Unknown file type for file
ont_albacore-1.0.2-cp35-cp35m-manylinux1_x86_64.whl (at
easybuild/software/EasyBuild/3.0.2/lib/python2.7/site-packages/easybuild_framework-3.0.2-py2.7.egg/easybuild/tools/filetools.py:646
in extract_cmd)
== 2017-04-17 15:14:38,274 easyblock.py:2503 WARNING build failed
(first 300 chars): Unknown file type for file
ont_albacore-1.0.2-cp35-cp35m-manylinux1_x86_64.whl
You need to avoid that EasyBuild tries to unpack the .whl file, using:
use_pip = True
unpack_sources = False
With the latest version of EasyBuild this only works for non-extensions
though, since you can't specify these easyconfig parameters on a
per-extension basis yet.
This is a long-standing issue [1], but I finally got around to fixing it
today [2] since I had a need for this myself [3].
I hope to get this merged in time for the upcoming EasyBuild v3.2.0
release (ETA late April/early May).
regards,
Kenneth
[1] https://github.com/hpcugent/easybuild-framework/issues/991
[2] https://github.com/hpcugent/easybuild-framework/pull/2194
[3] https://github.com/hpcugent/easybuild-easyconfigs/pull/4504