On 14/04/15 10:54, Pablo Escobar Lopez wrote:
Hi Fotis,

that one looks a good solution.

one question.....why not adding p7zip as a build dependency? this way you could avoid extra workarounds like the start_dir = '..' isn't it?

+1 for this

I've tried (and failed) in the past to create a pure way to do iso extraction in python, but it's far from simple. adding p7zip ass a builddependency and setting the extract command in the sources tuple seems like the most practical way to go here.

Pablo.

Jens

2015-04-14 10:35 GMT+02:00 Fotis Georgatos <[email protected] <mailto:[email protected]>>:


    Good morning Pablo,

    I’ve also been there; a “less pure” way to do this is to rely on
    p7zip, such as:
    
https://github.com/fgeorgatos/easybuild.experimental/blob/master/users/fgeorgatos/my_easyblocks/easybuild/easyblocks/MATLAB-2013a.eb

    The reason this is not “pure" is that we don’t yet have anything
    near “extractdeps”;
    ie. deps only become visible at build time rather than extract time.
    The workaround is to consider p7zip as yet another source.

    To be precice, I am far more emphatic for removing the human hand
    from the build processes
    rather than looking for perfect purity, so for me the above has
    always been the one and only way
    to deliver anything that requires .iso extraction (as opposed to
    manually creating a tarball).

    hope this helps in some way,

    F.

    On Apr 14, 2015, at 9:12 AM, Pablo Escobar Lopez
    <[email protected]
    <mailto:[email protected]>> wrote:
    > I need to install Mathematica 10.0.2 which is not supported in
    easybuild so I will try to update the available easyblock and I
    have a doubt.
    >
    > I have a Mathematica iso which contains the installer. As far as
    I know Easybuild doesn't support reading .iso files and I am not
    sure which is the recommended approach to deal with .iso files.
    >
    > which is the "easybuild way" to do this? should I create a
    .tar.gz "manually" with all the content of the .iso and comment in
    the easyconfig how the source file has been created? Or is there
    any other recommended approach? I am asking before starting
    tweaking the current easyblock to be sure I do it "the easybuild
    way" so it can be merged upstream in the future......if I manage
    to get it working :)
    >

    cheers,
    Fotis


    --
    echo "sysadmin know better bash than english" | sed s/min/mins/ \
      | sed 's/better bash/bash better/' # signal detected in a CERN forum










--
Pablo Escobar López
HPC systems engineer
Biozentrum, University of Basel
Swiss Institute of Bioinformatics SIB
Email: [email protected] <mailto:[email protected]>
Phone: +41 61 267 21 80
http://www.biozentrum.unibas.ch

Reply via email to