Re: untar builder fails with error

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-c79e233e-d28d-48ef-b83c-1661276aa585-1667633570613@3c-app-mailcom-bs05>
this builder looks heavy, it uses shell cmds, that was my goto when was using python2.7 (took ages to load)
as for now, I'm not sure I want to go that way.
maybe I can mix them, e.g. use the shell cmd in the emitter and the tarfile for the unpack. that will most probably be faster than getcontent (it takes 9 secs to get the members of a 50 mb tar.bz2 file)

Dagg

> Sent: Friday, November 04, 2022 at 6:51 PM
> From: "Mats Wichmann" <[email protected]>
> To: [email protected]
> Subject: Re: [Scons-users] untar builder fails with error
>
> On 11/4/22 10:26, Bill Deegan wrote:
> > Dagg,
> > 
> > Can you try with SCons 4.4.0?
> > 
> > -Bill
> > 
> 
> 
> Looked back at the error message, and it looks to me like something 
> isn't getting converted:
> 
> 
> >      > and I'm getting this error:
> >      > AttributeError: 'TarInfo' object has no attribute 'target_peers':
>  >      >      env.Unpack(get_target(), deps_targets_list,
> 
> TarInfo is an object defined by the Python tarfile module
> 
> https://docs.python.org/3/library/tarfile.html#tarinfo-objects
> 
> It makes sense that one of those wouldn't know about SCons-specific 
> stuff.  The recipe on the wiki page contains a converter routine 
> tarInfoToNode - seems like you must have set up a path through things 
> where that isn't called. The emitter is *supposed* to handle that, not 
> sure if this tool is broken or what the story is.
> 
> BTW, I was wrong, this isn't the tool I used, there are two of these 
> things in the wiki, and my experience was with the other one:
> 
> https://github.com/SCons/scons/wiki/DownloadUnpack
> 
> 
> 
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.