Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Christian Tismer
Some further analysis of the problem: Mercurial is (and should be) installed system-wide. The 'hg' command (at least my homebrew install) uses the normal shebang line #!/usr/bin/env python When using virtualenv and python2.7, this works fine. When using virtualenv or venv and python3.3, then

[Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Nick Coghlan
I've decided I'm really not happy with the current approach to extension fields in PEP 426. It's ugly, clunky, inflexible and is hard to cleanly convert to more structured metadata. Here's the current example from the PEP: Extension: Chili Chili/Type: Poblano Chili/Heat: Mild Here's

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Daniel Holth
I'm probably the only one but I'm not a fan of JSON with all the extra marks compared to the venerable, lovely, flatter and much easier to edit Key: value format. The METADATA file needs to represent Name, Version, and Requirements and the rest is fluff that no one will ever use. It's very

[Distutils] PEP 426: proposed metadata caching convention

2013-02-25 Thread Nick Coghlan
(This probably belongs in a successor to PEP 376, but I'll leave it under the PEP 426 umbrella for now) One of the points raised regarding PEP 426's integrated metadata format is the potential for runtime issues with pkg_resources as it reads and processes the metadata during startup,

Re: [Distutils] PEP 426: proposed metadata caching convention

2013-02-25 Thread Paul Moore
On 25 February 2013 14:39, Nick Coghlan ncogh...@gmail.com wrote: (This probably belongs in a successor to PEP 376, but I'll leave it under the PEP 426 umbrella for now) One of the points raised regarding PEP 426's integrated metadata format is the potential for runtime issues with

Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Christian Tismer
Addendum (see the end) On 25.02.13 13:27, Christian Tismer wrote: Some further analysis of the problem: Mercurial is (and should be) installed system-wide. The 'hg' command (at least my homebrew install) uses the normal shebang line #!/usr/bin/env python When using virtualenv and python2.7,

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Nick Coghlan
On Tue, Feb 26, 2013 at 12:38 AM, Daniel Holth dho...@gmail.com wrote: I'm probably the only one but I'm not a fan of JSON with all the extra marks compared to the venerable, lovely, flatter and much easier to edit Key: value format. I don't really care that much about human readability of

Re: [Distutils] PEP 426: proposed metadata caching convention

2013-02-25 Thread Nick Coghlan
On Tue, Feb 26, 2013 at 12:45 AM, Paul Moore p.f.mo...@gmail.com wrote: We don't really need everything to be in a single file, surely? Yes, I want the metadata to map cleanly to a single data structure so it can be more easily managed through things that *aren't* file systems (such as finally

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Daniel Holth
On Mon, Feb 25, 2013 at 9:54 AM, Nick Coghlan ncogh...@gmail.com wrote: On Tue, Feb 26, 2013 at 12:38 AM, Daniel Holth dho...@gmail.com wrote: I'm probably the only one but I'm not a fan of JSON with all the extra marks compared to the venerable, lovely, flatter and much easier to edit

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Nick Coghlan
On Tue, Feb 26, 2013 at 12:59 AM, Daniel Holth dho...@gmail.com wrote: On Mon, Feb 25, 2013 at 9:54 AM, Nick Coghlan ncogh...@gmail.com wrote: On Tue, Feb 26, 2013 at 12:38 AM, Daniel Holth dho...@gmail.com wrote: I'm probably the only one but I'm not a fan of JSON with all the extra marks

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Nick Coghlan
On Tue, Feb 26, 2013 at 1:29 AM, Daniel Holth dho...@gmail.com wrote: Well this is a rabbit hole. setup.cfg is what you get when the metadata devolves into the arguments passed to setup(). Perhaps that is the real reason I don't like JSON that much; the temptation would be to make it nothing

Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Carl Meyer
Hi Christian, On 02/25/2013 05:27 AM, Christian Tismer wrote: Some further analysis of the problem: Mercurial is (and should be) installed system-wide. The 'hg' command (at least my homebrew install) uses the normal shebang line #!/usr/bin/env python When using virtualenv and

Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Carl Meyer
Hi Christian, On 02/25/2013 07:48 AM, Christian Tismer wrote: After looking into pip help install, I tried to run (venv) $ pip install mercurial --install-option=--c2to3 Yes, this should be the correct way to pass an option directly to Mercurial's setup.py. Now the crazy effect is:

Re: [Distutils] PEP 426: proposed metadata caching convention

2013-02-25 Thread Daniel Holth
Post install hooks are different than setup.py because they are installed first and then run for all packages, and are not requested by the installed dist. They are more like rewriting script #!python shebang. May I humbly suggest deleting things from this pep until it is acceptable and not the

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Vinay Sajip
Nick Coghlan ncoghlan at gmail.com writes: The other area where I think such an embedded JSON approach could work is coming up with a clean format for an Entry-Points field. Specifically, I am thinking of proposing the setuptools.setup inspired: Entry-Points: {

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Daniel Holth
I can accept a rename but there is no way to avoid having 2 names not 1 new name for the feature. We go halfway now. The next version can go any other way. On Feb 25, 2013 12:23 PM, Vinay Sajip vinay_sa...@yahoo.co.uk wrote: Nick Coghlan ncoghlan at gmail.com writes: The other area where I

Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Christian Tismer
Hi Carl, On 25.02.13 17:47, Carl Meyer wrote: Hi Christian, On 02/25/2013 05:27 AM, Christian Tismer wrote: Some further analysis of the problem: ... But actually, the bad thing IMHO is the naming clash introduced by the symlinks that v(irtual)env is setting: Why does it ignore the

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Vinay Sajip
Daniel Holth dholth at gmail.com writes: I can accept a rename but there is no way to avoid having 2 names not 1 new name for the feature. We go halfway now. The next version can go any other way. Just to be clear, the naming of exports vs. entry points was not the main thrust of my point -

Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Carl Meyer
On 02/25/2013 10:31 AM, Christian Tismer wrote: Actually, I would love to have both python2 and python3 in the same virtualenv, for testing purposes, distinguishing the versions by using the different interpreter, only. But installing both versions after another messes things up very much and

Re: [Distutils] pip/easy_install mercurial in virtualenv on Python 3.3

2013-02-25 Thread Christian Tismer
Hi Carl, On 25.02.13 18:38, Carl Meyer wrote: On 02/25/2013 10:31 AM, Christian Tismer wrote: Actually, I would love to have both python2 and python3 in the same virtualenv, for testing purposes, distinguishing the versions by using the different interpreter, only. But installing both versions

[Distutils] Do women work on Python packaging?

2013-02-25 Thread Daniel Holth
With all the talk about pyladies etc. I wondered: are you female and working on Python packaging? Poll at http://strawpoll.me/7874 ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig

Re: [Distutils] [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

2013-02-25 Thread Carl Meyer
On 02/23/2013 08:08 PM, Nick Coghlan wrote: On Sun, Feb 24, 2013 at 4:43 AM, Daniel Holth dho...@gmail.com wrote: There simply must be a way to spell equals that means equals. It will be used when that so-called security release broke my application that integrates said library in a way that

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Vinay Sajip
Daniel Holth dholth at gmail.com writes: We all must realize that incremental improvements are not harmful. Delay is harmful; there has been no obvious way to make a Python package this decade based on the idea that something better might be just around the corner or that the current way will be

Re: [Distutils] [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

2013-02-25 Thread Daniel Holth
We have a potential solution from node which is to allow limited globs in version matches 1.0.* On Feb 25, 2013 3:04 PM, Carl Meyer c...@oddbird.net wrote: On 02/23/2013 08:08 PM, Nick Coghlan wrote: On Sun, Feb 24, 2013 at 4:43 AM, Daniel Holth dho...@gmail.com wrote: There simply must be a

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Daniel Holth
All I'm trying to say is do not add anything else to pep 426. There will be other versions. This version can be consumed by distutils as of last July. Daniel Holth dholth at gmail.com writes: We all must realize that incremental improvements are not harmful. Delay is harmful; there has been no

Re: [Distutils] PEP 426: proposed change to extension fields + entry points

2013-02-25 Thread Daniel Holth
by which I mean distribute On Feb 25, 2013 5:55 PM, Daniel Holth dho...@gmail.com wrote: All I'm trying to say is do not add anything else to pep 426. There will be other versions. This version can be consumed by distutils as of last July. Daniel Holth dholth at gmail.com writes: We all

Re: [Distutils] [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

2013-02-25 Thread Nick Coghlan
I realised globbing won't work easily, due to alpha/beta/release candidates missing the preceding dot, so 1.1.1.* wouldn't match versions like 1.1.1c1, while leaving the dot out would mean 1.1.1* matching versions like 1.1.11 (it also means the old PEP 345 default behaviour and the current ==

Re: [Distutils] [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

2013-02-25 Thread Donald Stufft
On Saturday, February 23, 2013 at 10:08 PM, Nick Coghlan wrote: The core problem with making == strict is that it either makes != useless by allowing (!=1.3) to match 1.3.1, or it breaks the invariant that != is the logical inverse of ==, by having both (==1.3) and (!=1.3) reject 1.3.1. I

Re: [Distutils] [Python-Dev] [Python-checkins] peps: PEP 426: replace implied 'version starts with' with new ~= operator

2013-02-25 Thread Nick Coghlan
On Tue, Feb 26, 2013 at 11:06 AM, Donald Stufft donald.stu...@gmail.com wrote: !=1.3 allowing 1.3.1 makes sense to me. 1.3 is equivalent to 1.3.0, 1.3.1 != 1.3.0. Nope, the PEP explicitly disclaims the historical equivalence between 1.3 and 1.3.0. It has to, because they're very different when