Hi,

 please ignore this. As it seems, the copy2 function in python 2.x does not 
support symlinks, while 3.x does.

 Best,
Gizo


On Wednesday, June 22, 2016 17:53 CEST, [email protected] 
<[email protected]> wrote:

>
> Does not seem to be working as I expected. If the list has a directory with 
> soft links in it, then it works.
> However, if I have only files in the list, like src/*.so, with some of them 
> to be  symlinks, then it does not.
> (I do not need to copy the whole src dir)
> Is this intentional ?
>
> This seems to be due to if/elif in the makecp.py file, line ~130.
>
> Best wishes,
> Gizo
>
>
> On Wednesday, June 22, 2016 11:09 CEST, Kenneth Hoste 
> <[email protected]> wrote:
>
> > Hi Gizo,
> >
> > This was a bug in the MakeCp easyblock, it was fixed recently, cfr. > 
> > https://github.com/hpcugent/easybuild-easyblocks/pull/959.
> >
> > The fix will be included in the next EasyBuild release, but it should be
> > trivial to apply this patch to your EasyBuild installation if you need it.
> >
> >
> > regards,
> >
> > Kenneth
> >
> > On 22/06/16 10:56, [email protected] wrote:
> > >
> > >   Hi,
> > >
> > >   it seems the easyblock MakeCp does not preserve links when copying 
> > > files from the list files_to_copy to destination directory. I do not see 
> > > that in its source code either.
> > >
> > > Eg.
> > >
> > >    files_to_copy = [.., (["src/*.so"], 'lib'), ..]
> > >
> > > Here *.so consist of a file and a link referring to the file:
> > >> tree
> > > .
> > > ├── liblammps_mpi.so
> > > └── liblammps.so ->  liblammps_mpi.so
> > >
> > >
> > > However, after copying they now look as follows in the target dir.> >> 
> > > tree
> > > .
> > > ├── liblammps_mpi.so
> > > └── liblammps.so
> > >
> > > Does Makecp have some option for similar case?
> > >
> > > Thank you.
> > > Gizo
> > >
> >
>
>
>
> --
>
> --


Reply via email to