I think the $PYTHONPATH should be pointing at just /apps/sources/EasyBuild/
custom

$MYEBDIR should be /apps/sources/EasyBuild/custom according to the docs

the easyblock is imported as easybuild.easyblocks.anaconda

On Wed, Jun 3, 2015 at 1:19 PM Niek de Klein <[email protected]> wrote:

> How can I write these easyblocks in a custom directory? I followed the
> steps from
> https://github.com/hpcugent/easybuild/wiki/Setting-up-your-own-easyblocks-repository.
> The folder where I saved the python file is in the $MYEBDIR folder:
>
>    $ readlink -f easybuild/easyblocks/anaconda.py
>    /apps/sources/EasyBuild/custom/easybuild/easyblocks/anaconda.py
>    $ $MYEBDIR
>    -bash: /apps/sources/EasyBuild/custom/easybuild/easyblocks/: is a
> directory
>
> and the folder is also in PYTHONPATH:
>
>    $ $PYTHONPATH
>    -bash:
> /apps/software/EasyBuild/2.1.1/lib/python2.6/site-packages:/apps/sources/EasyBuild/custom/easybuild/easyblocks/:
> No such file or directory
>
> I double checked this by importing anaconda.py from Python, which works
>
>    >>> import anaconda
>    >>> dir(anaconda)
>    ['CUSTOM', 'EB_Anaconda', 'EasyBlock', 'MANDATORY', '__builtins__',
> '__doc__', '__file__', '__name__', '__package__', '__warningregistry__',
> 'env', 'os', 'run_cmd', 'toolchain']
>
> In my anaconda.eb file I use easyblock = "EB_Anaconda". When I try to
> install with eb anaconda.eb --robot I get the error:
>
>    ERROR: Failed to process easyconfig
> /apps/sources/EasyBuild/custom/anaconda-1.8.0.eb: Failed to obtain class
> for EB_Anaconda easyblock (not available?): No module named anaconda
>
> Thanks,
> Niek
>
> On Wed, Jun 3, 2015 at 6:14 PM, Alan O'Cais <[email protected]> wrote:
>
>>  This script (that comes with EasyBuild) will create a commented
>> template for you to work on:
>>
>> https://github.com/hpcugent/easybuild-framework/blob/master/easybuild/scripts/mk_tmpl_easyblock_for.py
>>
>> On 3 June 2015 at 18:07, Robert Schmidt <[email protected]> wrote:
>>
>>> I don't think there is any easy one like this (but you could write your
>>> own easyblock).
>>>
>>> You might look at CmdCp as an idea. It could work for what you want too
>>> (you could specify a source file in the map, but never use the variable in
>>> the command).
>>>
>>>
>>> https://github.com/hpcugent/easybuild-easyblocks/blob/master/easybuild/easyblocks/generic/cmdcp.py
>>>
>>>
>>>  On Wed, Jun 3, 2015 at 11:52 AM Niek de Klein <[email protected]>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>>  I have been going through the manual and I can't find a description
>>>> of the steps that each of the easyblocks make. I can only find the list of
>>>> easyblocks, an introduction and specifications. Specifically, I need an
>>>> easyblock that only does "sh installer.sh". I can't find if any of the
>>>> easyblocks already does that, or if not, how I can make an easyblock
>>>> myself.
>>>>
>>>>  Can you point me where I can find this in the manual?
>>>>
>>>>  Thanks,
>>>> Niek
>>>>
>>>
>>
>>
>>  --
>>  Dr. Alan O'Cais
>> Application Support
>> Juelich Supercomputing Centre
>> Forschungszentrum Juelich GmbH
>> 52425 Juelich, Germany
>>
>> Phone: +49 2461 61 5213
>> Fax: +49 2461 61 6656
>> E-mail: [email protected]
>> WWW:    http://www.fz-juelich.de/ias/jsc/EN
>>
>>
>>
>> ------------------------------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------------------------
>> Forschungszentrum Juelich GmbH
>> 52425 Juelich
>> Sitz der Gesellschaft: Juelich
>> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
>> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
>> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
>> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
>> Prof. Dr. Sebastian M. Schmidt
>>
>> ------------------------------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------------------------
>>
>>
>

Reply via email to