[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-09-07 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

I think there's no consensus at this point in the best format for all
platform.

I am closing this issue as wontfix. Maybe a new format will rule them
all in a few years.
 
Michael, can you create a specific issue for the CRLF problem ? Thanks a
lot.

--
resolution:  - wont fix
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-25 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

 Because I'm a unix weenie, and zip files feel like an intrusion from the
 Windows world. I expect source tarballs to be, well, tarballs.  I don't
 say zip shouldn't be the default, I just noted that I personally would
 find that distasteful. ;)

Agreed :)

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

As Michael said. As a Linux user I prefer tar.gz (or tar.bz2 or tar.xz),
but distutils should go with zip since it has better support everywhere.

It's true that tar supports lzma (although unfortunately there is still
no lzma support bundled in the stdlib), but for most source
distributions I don't think size is really critical.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

Antoine, you may mix container with compression. tar as file container
is suitable for unix like systems. other container like zip-container is
not well designed for unix-like file systems.

I disagree with request. Package distribution is platform dependent.

--
nosy: +rpetrov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Zooko O'Whielacronx

Zooko O'Whielacronx zo...@zooko.com added the comment:

Antoine, when you say zip has better support everywhere, what do you
mean?  I don't want to put words in your mouth, but what I think of is
that users maybe want to pack or unpack distributions with separate
tools instead of with the Python tools.  Is that it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Yup, standard install procedure is (and will probably remain for a
while) - unpack and run python setup.py install

Users should be able to unpack on the most common platforms Python
supports without needing additional tools. All major platforms have
native zip support which isn't true of other formats.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I do not believe it is true that zip is supported by all platforms out
of the box.  As far as I know Gentoo, for example, does not install
unzip by default.  For that matter, before windows XP one had to
download a utility to unzip files on windows (and that utility handles
tar files just fine).  Since there are still a few pre-XP windows boxes
out there, it is not even true to say that all Windows machines handle
zip out of the box.

Personally I would very much dislike it if python source distributions
were zipfiles by default.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 other container like zip-container is
 not well designed for unix-like file systems.

Well, please be more specific as to why zip it affects sdist in
particular. Never before have I heard anyone claim that zip was
ill-suited for source tarballs.

 I disagree with request. Package distribution is platform dependent.

It is not package distribution. It is package generation. If you use the
same command (sdist), it would be nicer if it produced the same result
regardless of whether you are under Unix or Windows.

(platform-dependent packages, by the way, are rpm, deb, msi, etc. ;-))

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Personally I would very much dislike it if python source distributions
 were zipfiles by default.

Why?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Because I'm a unix weenie, and zip files feel like an intrusion from the
Windows world. I expect source tarballs to be, well, tarballs.  I don't
say zip shouldn't be the default, I just noted that I personally would
find that distasteful. ;)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

setup.py should be able to generate tarfile distributions on Windows
without requiring tar to be on the path.

Ideally setup.py sdist should create the same type of archive (zip or
tarball) by default independent of platform.

At the moment it creates a zip by default on Windows and a tarball on
Linux / OS X.

Packages created on Windows also have CRLF line endings in the MANIFEST
file which is a nuisance for non-Windows consumers of distributions.

--
assignee: tarek
components: Distutils
messages: 89454
nosy: michael.foord, tarek
severity: normal
status: open
title: Native (and default) tarfile support for setup.py sdist in distutils on 
Windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Now that distutils uses tarfile (see #6048) we can propose a tar archive
on all platform by default without requiring tar to be installed.

Althoug, the gz compression requires the zlib module. I need to check
what are the requirements of its installation in the sdtlib.

For the MANIFEST file, do you mean the file generated by MANIFEST.in ?

--
versions: +Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Given that Windows can't handle tar files by default but all platforms
support zip out of the box wouldn't (unfortunately) zip be a better default?

For the MANIFEST I meant the file called MANIFEST that distutils creates
(and includes in the distribution) when you run setup.py sdist.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

As a developer I prefer .tar.gz, but I don't have a strong opinion on
picking zip or tar, I think tar is fine as long as all installers out
there (easy_install, pip, etc) are  working with the archives on every
platform too.

Someone who wants more can handle tar imho.

i'll sen a mail to distutils-SIG

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

The point is not for developers who are happy handling .tar.gz but users
of the distribution who don't have a way of handling them.

I prefer .tar.gz myself as well but I don't think the default
distribution format should be one that isn't natively supported by one
of the major platforms that Python runs on.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Tim Golden

Tim Golden m...@timgolden.me.uk added the comment:

What's superior about .tar.gz? (This is a genuine question).

--
nosy: +tim.golden
title: Native (and default) tarfile support for setup.py sdist in distutils on 
Windows - Native (and default) tarfile support for setup.py sdist   in 
distutils on Windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Better compression.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Zooko O'Whielacronx

Zooko O'Whielacronx zo...@zooko.com added the comment:

I strongly favor a common approach instead of doing it differently on
different platforms.  (Aside: check out the gratuitous differences for
names and locations of distutils config files:
http://docs.python.org/install/index.html#location-and-names-of-config-files
.)

I weakly favor tar over zip.  The current release of tar features LZMA
compression, for example:

$ ls -lS
-rw-rw-r-- 1 zooko zooko 8355840 2009-06-17 09:48
allmydata-tahoe-1.4.1-r3916.tar
-rw-rw-r-- 1 zooko zooko 2562835 2009-06-17 09:51
allmydata-tahoe-1.4.1-r3916.zip
-rw-rw-r-- 1 zooko zooko 2383653 2009-06-17 09:48
allmydata-tahoe-1.4.1-r3916.tar.gz
-rw-rw-r-- 1 zooko zooko 2250149 2009-06-17 09:49
allmydata-tahoe-1.4.1-r3916.tar.bz2
-rw-rw-r-- 1 zooko zooko 2223425 2009-06-17 09:49
allmydata-tahoe-1.4.1-r3916.tar.rz
-rw-rw-r-- 1 zooko zooko 1818466 2009-06-17 09:52
allmydata-tahoe-1.4.1-r3916.7z
-rw-rw-r-- 1 zooko zooko 1811698 2009-06-17 09:50
allmydata-tahoe-1.4.1-r3916.tar.xz

Presumably the current tar module in Python doesn't yet support LZMA,
but it is a good possibility for the future.  On the other hand, ZIP is
more widely used, e.g. by setuptools and especially by tools which were
born in Windows world.

--
nosy: +zooko

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com