[Scons-users] Is there a pure-python tar builder?
Daniel Holth
dholth at gmail.com
Mon Jun 26 14:35:21 EDT 2017
I love reduced parallelism. Anything wrong with writing my own tar builder env
= Environment(tools=['python_tar']) to overwrite the stock
env['BUILDERS']['Tar'] with my own pure Python version? The Python tar
builder will work on any platform and produce exactly the PAX format tar
files I want with configurable permissions & file timestamps. Then
hopefully it will work with the packaging tool which already does 95% of
what I need. Either that or add my new type to SCons.Tool.packaging.__all__
- Daniel
On Mon, Jun 26, 2017 at 11:50 AM Bill Deegan <bill at baddogconsulting.com>
wrote:
> Daniel,
>
> See:
> https://bitbucket.org/scons/scons/wiki/DistTarBuilder
> and
> https://bitbucket.org/scons/scons/wiki/ArchiveBuilder
>
> One note, using python code to implement the builder rather than shelling
> out to run a command will make the builder subject to the GIL and thus
> reduce parallelism.
>
> -Bill
>
> On Mon, Jun 26, 2017 at 8:21 AM, Daniel Holth <dholth at gmail.com> wrote:
>
>> Hello, I would like to generate .tar.gz archives cross platform and on
>> Windows by using the Python tar module instead of the tar command, similar
>> to how the zip builder uses the zipfile module. Has anyone developed such a
>> builder?
>>
>> Thanks,
>>
>> Daniel
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170626/361f147c/attachment.html>
More information about the Scons-users
mailing list