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]> på vegne av Lars Viklund 
<[email protected]>
Svar til: "[email protected]" <[email protected]>
Dato: onsdag 17. januar 2018 14:15
Til: "[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]<mailto:[email protected]> 
<[email protected]><mailto:[email protected]> on 
behalf of Caspar van Leeuwen 
<[email protected]><mailto:[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]><mailto:[email protected]>
To: "easybuild" <[email protected]><mailto:[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.

Reply via email to