As Maxime mentionned, I have been waiting for this feature for a long time now, and decided it is time to implement it. I will be implementing this feature soon in the framework and will make a pull request when completed.
On Wed, Jan 17, 2018 at 9:59 AM, Caspar van Leeuwen < [email protected]> wrote: > +1. > > I was editing the PyTorch module of Lars earlier, and it took me a while > to realize what was going on with the submodules. A git clone --recursive > would be way - dare I say it? - easier :) > > Don't know if it's just lack of time, or whether there is a good reason > why this hasn't been implemented (yet) in EasyBuild. More good topics for > the EasyBuild user meeting? > > Caspar > > > ------------------------------ > *From: *"Maxime Boissonneault" <[email protected]> > *To: *"easybuild" <[email protected]>, "Espen Tangen" < > [email protected]> > *Cc: *"charles coulombe" <[email protected]> > *Sent: *Wednesday, 17 January, 2018 15:06:17 > *Subject: *Re: [easybuild] Re: EB support for git submodules > > That's a long standing wish of one of my colleague as well. > > Maxime > > On 18-01-17 08:56, Espen Tangen wrote: > > No; I was more in line with > > > > Sources = "git clone --recursive --checkout=""commit-SHA""" > > Cmake > > Make > > > > But I get the feeling that world is not so easy yet? > > > > Et. > > > > *Fra: *<[email protected]> > <[email protected]> på vegne av Lars Viklund > <[email protected]> <[email protected]> > *Svar til: *"[email protected]" <[email protected]> > <[email protected]> <[email protected]> > *Dato: *onsdag 17. januar 2018 14:15 > *Til: *"[email protected]" <[email protected]> > <[email protected]> <[email protected]> > *Emne: *[easybuild] Re: EB support for git submodules > > > > Hi all, > > > > As I'm the one that made that config, it was indeed obtained by hand. > > > > If memory serves me right, I did a: > > git clone -b v0.3.0 --recursive https://github.com/pytorch/pytorch.git > <https://github.com/pytorch/pytorch.git%60> > > and grabbed the hashes, repos, and paths from the output of the git > command, manually transforming them into the shape you see in the > easyconfig. > > > > I did this after seeing the horror of the mxnet.py easyblock which relied > on unpacking all the tarballs into a common directory and moving them into > the approximate places in the source tree. > > > > // Lars Viklund, HPC2N > > > ------------------------------ > > *From:* [email protected] <easybuild-request@lists. > ugent.be> <[email protected]> on behalf of Caspar van > Leeuwen <[email protected]> <[email protected]> > *Sent:* Wednesday, January 17, 2018 11:12 > *To:* easybuild > *Subject:* Re: [easybuild] EB support for git submodules > > > > Hi Espen, > > > > Do you mean something like what's happening for the submodules of PyTorch > (gloo, googletest, etc) in this EasyConfig: https://github.com/ > easybuilders/easybuild-easyconfigs/pull/5530/files#diff- > 60532b1c315a237f3b42ee9fafeef614 ? (this uses the syntax > https://github.com/<github_account>/<repo_name>/archive/<hash>.tar.gz) > > > > Seems the hashes were obtained by hand there, I'm not sure if there's also > an easier / more automated way to do this. > > > > Regards, > > > > Caspar > > > > > ------------------------------ > > *From: *"Espen Tangen" <[email protected]> <[email protected]> > *To: *"easybuild" <[email protected]> <[email protected]> > *Sent: *Wednesday, 17 January, 2018 10:41:08 > *Subject: *[easybuild] EB support for git submodules > > > > Hi. I am trying to figure out if EB is supporting source download via git > recursive - given a specific hash. What I have seen so far indicates that > there is none, but I want to be sure before I create an issue on this. > > > > Regards > > > > Et. > > > > > -- > --------------------------------- > Maxime Boissonneault > Analyste de calcul - Calcul Québec, Université Laval > Président - Comité de coordination du soutien à la recherche de Calcul Québec > Team lead - Research Support National Team, Compute Canada > Instructeur Software Carpentry > Ph. D. en physique > > > -- Charles Coulombe Analyste en calcul informatique de pointe Calcul Québec - Université Laval

