Dear Kenneth, thanks for you response. It worked but with minor modifications as follows:
install_cmd = "cp -a FastQC/* %(installdir)s && chmod +x %(installdir)s/fastqc" Best regards, *Andreas Panteli* HPC Systems Support CaSToRC, The Cyprus Institute *Tel:* +357 22208610 *Email:* a.pant...@cyi.ac.cy On 28 April 2014 18:17, Kenneth Hoste <kenneth.ho...@ugent.be> wrote: > > On 10/04/14 16:25, Pablo Escobar Lopez wrote: > > Hi Andreas, > > As long as I am aware this is not possible in an easyconfig, you need to > go for easyblock, at least I have used an easyblock when I need something > like this > > I also suggested to add this feature in this comment in github > > https://github.com/hpcugent/easybuild-easyconfigs/pull/795#issuecomment-39011073 > > I think an easyconfig option like "postinstallcmds" can be quite handy > for some applications > > > In fact, there is a possibility when you're using the PackedBinary > easyblock, by defining the install_cmd in the easyconfig file. > > By default, PackedBinary will use the install_step procedure from the > Binary easyblock, which will do the equivalent of "cp -a * %(installdir)s", > unless install_cmd is defined. > > So, you can define install_cmd as follows: > > install_cmd = "cp -a * %(installdir)s && chmod +x fastqc" > > > I didn't test this, but it should work. > > I agree with Pablo that supporting something like "postinstallcmds" would > be better though, since that would work across all easyblocks. Shouldn't be > too hard to implement... > > regards, > > Kenneth > > > > regards, > Pablo. > > > 2014-04-10 15:58 GMT+02:00 Andreas Panteli <a.pant...@cyi.ac.cy>: > >> Dear all, >> >> I am trying to import FastQC into Easybuild using the >> easyblock PackedBinary. >> >> The problem I am facing is that I have to chmod +x the executable after >> the install step. Is there any trick for that or do I have to implement an >> easyblock? >> >> >> Best regards, >> >> *Andreas Panteli* >> HPC Systems Support >> CaSToRC, The Cyprus Institute >> *Tel:* +357 22208610 <%2B357%2022208610> >> *Email:* a.pant...@cyi.ac.cy >> > > > > -- > Pablo Escobar López > HPC systems engineer > Biozentrum, University of Basel > Swiss Institute of Bioinformatics SIB > Email: pablo.escobarlo...@unibas.ch > Phone: +41 61 267 15 82 > http://www.biozentrum.unibas.ch > > >