Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Stephen J. Turnbull
Carl Meyer writes: > > On 31 October 2011 16:08, Tres Seaver wrote: > >> I would say this is a perfect "opportunity to delegate," in this case > >> to the devotees of other cults^Wshells than bash. > > Good call - we'll stick with what we've got until such devotees > show up :-) That's fi

Re: [Python-Dev] Code cleanups in stable branches?

2011-10-31 Thread Brett Cannon
On Mon, Oct 31, 2011 at 13:24, Nick Coghlan wrote: > Removing dead code and bypassing redundant code are both reasonable bug > fixes. The kind of change to be avoided is gratuitous replacement of older > idioms with newer ones. > > What Nick said as I was in the middle of typing when he sent this

Re: [Python-Dev] Code cleanups in stable branches?

2011-10-31 Thread Nick Coghlan
Removing dead code and bypassing redundant code are both reasonable bug fixes. The kind of change to be avoided is gratuitous replacement of older idioms with newer ones. -- Nick Coghlan (via Gmail on Android, so likely to be more terse than usual) ___ P

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2011 10:28 AM, Paul Moore wrote: > On 31 October 2011 16:08, Tres Seaver wrote: >> On 10/31/2011 11:50 AM, Carl Meyer wrote: >> >>> I have no problem including the basic posix/nt activate scripts if >>> no one else is concerned about the adde

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Paul Moore
On 31 October 2011 18:36, Ned Deily wrote: > In article > , >  Paul Moore wrote: >> On 30 October 2011 18:04, Ned Deily wrote: >> > Has anyone analyzed the current packages on PyPI to see how many provide >> > binary distributions and in what format? >> >> A very quick and dirty check: >> >> dmg

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Ned Deily
In article , Paul Moore wrote: > On 30 October 2011 18:04, Ned Deily wrote: > > Has anyone analyzed the current packages on PyPI to see how many provide > > binary distributions and in what format? > > A very quick and dirty check: > > dmg: 5 > rpm: 12 > msi: 23 > dumb: 132 > wininst: 364 > e

Re: [Python-Dev] cpython (2.7): test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not

2011-10-31 Thread Antoine Pitrou
On Mon, 31 Oct 2011 19:09:01 +0100 barry.warsaw wrote: > http://hg.python.org/cpython/rev/1de4d92cd6a4 > changeset: 73258:1de4d92cd6a4 > branch: 2.7 > parent: 73253:7ce3b719306e > user:Barry Warsaw > date:Mon Oct 31 14:08:15 2011 -0400 > summary: > test_protocol_sslv

Re: [Python-Dev] [Python-checkins] cpython (2.7): Add a button to the code examples in the doc to show/hide the prompts and

2011-10-31 Thread Ezio Melotti
Hi Éric, On 31/10/2011 19.19, Éric Araujo wrote: Hi Ezio, http://hg.python.org/cpython/rev/18bbfed9aafa user:Ezio Melotti summary: Add a button to the code examples in the doc to show/hide the prompts and output. Looks cool! I hope this will stop our use of two or three different

[Python-Dev] Code cleanups in stable branches?

2011-10-31 Thread Éric Araujo
Hi, > http://hg.python.org/cpython/rev/72de2ac8bb4f > branch: 2.7 > user:Petri Lehtinen > date:Sun Oct 30 13:55:02 2011 +0200 > summary: > Avoid unnecessary recursive function calls (closes #10519) > http://hg.python.org/cpython/rev/0694ebb5db99 > branch: 2.7 > user:

Re: [Python-Dev] [Python-checkins] cpython (3.2): I should be someone

2011-10-31 Thread Éric Araujo
Hi, > http://hg.python.org/cpython/rev/6f56e81da8f6 > user:Florent Xicluna > summary: > I should be someone Without quotation marks, that sounded like a philosophical commit :) Cheers ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] [Python-checkins] cpython (2.7): Add a button to the code examples in the doc to show/hide the prompts and

2011-10-31 Thread Éric Araujo
Hi Ezio, > http://hg.python.org/cpython/rev/18bbfed9aafa > user:Ezio Melotti > summary: > Add a button to the code examples in the doc to show/hide the prompts and > output. Looks cool! I hope this will stop our use of two or three different styles for Python code in the docs (doctes

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Éric Araujo
Hi, > I'd like to reopen the discussions on how the new packaging module > will handle/support binary distributions in Python 3.3. The previous > thread (see > http://mail.python.org/pipermail/python-dev/2011-October/113956.html) > included a lot of good information and discussion, but ultimately

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Paul Moore
On 31 October 2011 16:08, Tres Seaver wrote: > On 10/31/2011 11:50 AM, Carl Meyer wrote: > >> I have no problem including the basic posix/nt activate scripts if >> no one else is concerned about the added maintenance burden there. >> >> I'm not sure that my cross-shell-scripting fu is sufficient t

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2011 11:50 AM, Carl Meyer wrote: > I have no problem including the basic posix/nt activate scripts if > no one else is concerned about the added maintenance burden there. > > I'm not sure that my cross-shell-scripting fu is sufficient to > w

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2011 06:28 AM, Antoine Pitrou wrote: > On Sun, 30 Oct 2011 12:10:18 + (UTC) > Vinay Sajip wrote: >> >>> We already have Unix shell scripts and BAT files in the source tree. Is >>> it really complicated to maintain these additional shell s

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/31/2011 09:35 AM, Vinay Sajip wrote: > That's true, I hadn't thought of that. So then it sounds like the thing to do > is > make venv a package and have the code in venv/__init__.py, then have the > scripts > in a 'scripts' subdirectory below t

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Vinay Sajip
Carl Meyer oddbird.net> writes: > I don't see any advantage to zipping. If done at install-time (which is > necessary to make the scripts maintainable in the source tree) it also > has the downside of introducing another difficulty in supporting source > builds equivalently to installed builds.

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2011 04:47 PM, Vinay Sajip wrote: > Antoine Pitrou pitrou.net> writes: >> It would be even simpler not to process it at all, but install the >> scripts as-is (without the execute bit) :) > Sure, but such an approach makes it difficult to prov

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Paul Moore
On 31 October 2011 14:22, Antoine Pitrou wrote: > On Mon, 31 Oct 2011 05:59:09 -0400 > "Eric V. Smith" wrote: >> >> It might be true that such systems don't need binary packages on PyPI, >> but the original question is about binary package support for the >> packaging module on non-Windows system

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > Isn't that overengineered? We're talking about a couple of files. We're not talking about a lot of code to do this, either - just the interface to the existing code (which is needed anyway to install the minimal scripts in the venv). > It's not even obvious

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Antoine Pitrou
On Mon, 31 Oct 2011 05:59:09 -0400 "Eric V. Smith" wrote: > > It might be true that such systems don't need binary packages on PyPI, > but the original question is about binary package support for the > packaging module on non-Windows systems. I think the answer is clearly > "yes": I have such sy

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Antoine Pitrou
On Mon, 31 Oct 2011 07:50:24 + (UTC) Vinay Sajip wrote: > Antoine Pitrou pitrou.net> writes: > > > I don't understand why a zip file makes this easier (especially the > > "update selectively" part). > > Not a zip file specifically - just a binary stream which organises scripts to > be > in

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/28/2011 05:10 PM, Chris McDonough wrote: >> Why not modify sys.prefix? >> - -- >> >> As discussed above under `Backwards Compatibility`_, this PEP proposes >> to add ``sys.site_prefix`` as "the prefix relative to which >>

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Vinay Sajip
Martin v. Löwis v.loewis.de> writes: > This presumption is false (as is the claim that you need to install the > MSI to get at the files). It's quite possible to extract the files from > the MSI without performing the installation. There are actually two ways > to do that: > a) perform an "admin

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Vinay Sajip
Paul Moore gmail.com> writes: > Agreed - the "one size fits all" data location is a limitation. I'm > not sure that in practical terms it is a big issue, though - it's been > like that since the wininst format was designed, and nobody has ever > complained. There are certainly cases where package

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Paul Moore
On 31 October 2011 10:42, "Martin v. Löwis" wrote: > Am 31.10.2011 09:07, schrieb Vinay Sajip: > This presumption is false (as is the claim that you need to install the > MSI to get at the files). It's quite possible to extract the files from > the MSI without performing the installation. There ar

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Martin v. Löwis
Am 31.10.2011 09:07, schrieb Vinay Sajip: > Paul Moore gmail.com> writes: > >> Hang on. I'm talking here about repackaging the binary files in the >> MSI file for use in a pysetup install invocation. As pysetup has no >> GUI, and doesn't integrate with Add/Remove, there's no issue here. If >> you

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Eric V. Smith
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/30/2011 5:14 PM, Tres Seaver wrote: > On 10/30/2011 02:04 PM, Ned Deily wrote: >> In article >> , > >> > > Paul Moore wrote: > >>> I'd like to reopen the discussions on how the new packaging >>> module will handle/support binary distributio

Re: [Python-Dev] Packaging and binary distributions

2011-10-31 Thread Vinay Sajip
Paul Moore gmail.com> writes: > Hang on. I'm talking here about repackaging the binary files in the > MSI file for use in a pysetup install invocation. As pysetup has no > GUI, and doesn't integrate with Add/Remove, there's no issue here. If > you want a GUI and Add/Remove integration, just run t

Re: [Python-Dev] draft PEP: virtual environments

2011-10-31 Thread Vinay Sajip
Antoine Pitrou pitrou.net> writes: > I don't understand why a zip file makes this easier (especially the > "update selectively" part). Not a zip file specifically - just a binary stream which organises scripts to be installed. If each class in a hierarchy has access to a binary stream, then sub