Hi Andy,
On 31/05/16 18:18, Andy Turner wrote:
Kenneth, Jens,
On 31/05/2016 16:52, Jens Timmerman wrote:
Hi Andy,
On 05/31/2016 05:38 PM, Andy Turner wrote:
This could be achieved by putting it online, and this is what we
already do:
http://www.archer.ac.uk/documentation/software/vasp/compiling_5-4-1-phase2.php
However, if I can encode it in the VASP easyconfig/block then other
Cray sites will be able to build optimised VASP (using easybuild)
without having to download additional files from somewhere.
you can add http://www.archer.ac.uk/documentation/software/vasp/ to
your sources_urls and add makefile.include.crayxc_intel to your list
of sources,
then easybuild will download it (if there is internet access) during
the build. So all you need to do is send people your easyconfig (or
create a pull request for your special version of the easyconfig to
have it included in EasyBuild by default)
see
http://easybuild.readthedocs.io/en/latest/Writing_easyconfig_files.html#source-files-and-patches
Sorry if I am not getting my intentions across properly!
Cheers
Andy
Regards,
Jens Timmerman
Thanks for all the help. One final question: I can get the tool to
pull the custom file from the ARCHER website but then it tries to
unpack it and fails as it is not an archive file:
== 2016-05-31 17:15:13,908 easyblock.py:1498 INFO Unpacking source
makefile.include.crayxc_intel
== 2016-05-31 17:15:13,966 build_log.py:152 ERROR Unknown file type
for file makefile.include.crayxc_intel (at
easybuild/software/EasyBuild/2.8.0/lib64/python2.6/site-packages/easybuild_fram
ework-2.8.0-py2.6.egg/easybuild/tools/filetools.py:587 in extract_cmd)
How do I configure the tool to not try to unpack this file?
Two options:
* by specifying a custom unpack command (some kind of no-op like 'echo'
for example), but I guess this is kind of a hack
sources = [('makefile.include.crayxc_intel', "echo %s")]
* by listing it as a patch file as I suggested before; EasyBuild will
try to download patch files too via the source_urls listed if it can't
find them...
patches = [('makefile.include.crayxc_intel', 'makefile.include')]
K.