Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-18 Thread Nick Coghlan
On 18 March 2017 at 07:04, Leonardo Rochael Almeida wrote: > On 17 March 2017 at 11:47, Paul Moore wrote: > >> On 17 March 2017 at 14:40, Nick Coghlan wrote: >> > [...] whichever >> > version of "foo" is first on sys.path will

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Leonardo Rochael Almeida
On 17 March 2017 at 11:47, Paul Moore wrote: > On 17 March 2017 at 14:40, Nick Coghlan wrote: > > [...] whichever > > version of "foo" is first on sys.path will "win", and you won't be able > to > > import from the other one (so you'll be able to import

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Ronny Pfannschmidt
On 17.03.2017 15:35, Nick Coghlan wrote: > On 17 March 2017 at 19:58, Ronny Pfannschmidt > > wrote: > > Hi everyone, > > while looking over the recent peps i noticed that we keep a few > inherent

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Daniel Holth
At least *.egg-info works without-a-version and will be written that way when installed in development mode. As a shortcut when possible pkg_resources would read the package name and version number from the filename and not bother looking inside the metadata file until necessary. I don't recall

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Paul Moore
On 17 March 2017 at 14:40, Nick Coghlan wrote: > Unless the __init__.py has its own __path__ extension code, whichever > version of "foo" is first on sys.path will "win", and you won't be able to > import from the other one (so you'll be able to import "foo.bar" or >

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Nick Coghlan
On 18 March 2017 at 00:00, Paul Moore wrote: > As a theoretical example: > > foo 1.0 looks like this: > > foo > __init__.py > bar.py > > foo 2.0 moves the functionality of foo/bar.py into baz.py > > foo > __init__.py > baz.py > > Put

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Nick Coghlan
On 17 March 2017 at 19:58, Ronny Pfannschmidt < opensou...@ronnypfannschmidt.de> wrote: > Hi everyone, > > while looking over the recent peps i noticed that we keep a few inherent > inefficiencies in where to find dist-info folders > > because they include version numbers, to get a distribution

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Paul Moore
On 17 March 2017 at 14:04, Ronny Pfannschmidt wrote: > btw, thats irrelevant for dist-info > either it gets found double and is a problem > or its priority-overridden Agreed this is not relevant for dist-info (and sorry for diverting the discussion into a

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Paul Moore
On 17 March 2017 at 13:34, Donald Stufft wrote: > Hmm, I believe it generally works fine does it not? The only situations I > can think of where it does something funny are: > > (1) PEP 420 namespace packages where a file was added or removed in one of > the versions (since that

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Ronny Pfannschmidt
btw, thats irrelevant for dist-info either it gets found double and is a problem or its priority-overridden On 17.03.2017 15:00, Paul Moore wrote: > On 17 March 2017 at 13:34, Donald Stufft wrote: >> Hmm, I believe it generally works fine does it not? The only situations I >>

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Donald Stufft
> On Mar 17, 2017, at 9:25 AM, Paul Moore wrote: > > On 17 March 2017 at 12:50, Leonardo Rochael Almeida > wrote: >> I'm +0 on this proposal (the lack of enthusiasm coming from the fact that >> multiple projects will be affected), but I'm -lots on any

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Paul Moore
On 17 March 2017 at 12:50, Leonardo Rochael Almeida wrote: > I'm +0 on this proposal (the lack of enthusiasm coming from the fact that > multiple projects will be affected), but I'm -lots on any proposal > forbidding installation of different versions in different

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Freddy Rietdijk
Users may want to split installations over multiple folders and creating a working environment by merging them (through symlinks / PYTHONPATH / sys.path / site / .pth). Python doesn't support multiple versions of the same module during runtime, and therefore I don't see any benefit in including a

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Leonardo Rochael Almeida
On 17 March 2017 at 07:32, Paul Moore wrote: > On 17 March 2017 at 09:58, Ronny Pfannschmidt < > opensou...@ronnypfannschmidt.de> wrote: > > [...] > > in order to address that i'd like to propose to switch > > > > from "{distribution}-{version}.dist-info/" to >

Re: [Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Paul Moore
On 17 March 2017 at 09:58, Ronny Pfannschmidt wrote: > while looking over the recent peps i noticed that we keep a few inherent > inefficiencies in where to find dist-info folders > > because they include version numbers, to get a distribution we have to > search

[Distutils] [proposal] version-free + lookup-friendly dist-info location

2017-03-17 Thread Ronny Pfannschmidt
Hi everyone, while looking over the recent peps i noticed that we keep a few inherent inefficiencies in where to find dist-info folders because they include version numbers, to get a distribution we have to search for it which is no longer really sensible as we no longer have multi-version