[Distutils] sdist default archive format
David Lyon
david.lyon at preisshare.net
Sat Jun 20 03:53:20 CEST 2009
On Fri, 19 Jun 2009 10:38:39 -0600, Zooko Wilcox-O'Hearn <zooko at zooko.com>
wrote:
> It isn't so easy for setuptools to know which things ought to have +x
> and which things ought not just based on their pathnames or other
> metadata.
It is very easy.... it already knows...
http://docs.python.org/distutils/setupscript.html#installing-scripts
The scripts option simply is a list of files to be handled in this way.
>From the PyXML setup script:
setup(...,
scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
)
> Having an archive format that preserves such bits would probably be a
> good way to solve all such problems -- by making it the packagers
> problems to set the bits before packaging rather than setuptools's
> problem to figure out which bits ought to be set after installation.
It's totally impossible on windows...
Because you are talking about a unix specific problem...
Why not just solve the problem rather than spreading it to
more platforms?
> 1.8 / 2.5 == 72%, so 28% of the .zip file size is saved by switching
> to .tar.xz. Of course, some packages may gain more or less than 28%
> (compared to ZIP compression) from LZMA compression.
Well maybe its good. Its a new one to me though...
David
More information about the Distutils-SIG
mailing list