Hi Niek,
On 29/06/16 15:41, Niek de Klein wrote:
Dear list,
I am writing an easyconfig for BeautifulSoup4
(https://pypi.python.org/pypi/beautifulsoup4).
The sanity check tries to import it with import beautifulsoup4.
However, to import beautifulsoup the actual command is
from bs4 import BeautifulSoup
How can I change how it tries to import for sanity checking? I now
tried to overwrite it with setting sanity_commands, but it does not
overwrite. I can change the name to bs4, but then it can not find
bs4-4.4.1.tar.gz.
The import check is not done via sanity check commands, it's separate.
You can control the module name being used for the import check with:
options = {'modulename': 'bs4'}
See for example
https://github.com/hpcugent/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/p/pyTables/pyTables-3.2.2-intel-2015b-Python-2.7.10.eb
.
regards,
Kenneth