Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-22 Thread Tarek Ziadé
On Wed, May 20, 2009 at 11:48 AM, Tarek Ziadé wrote: > So I guess I'll start this prototype in bitbucket and come back with it for > feedback > in Distutils-SIG, for a new PEP 376 round. Ok so FYI, I moved the discussion here: http://mail.python.org/pipermail/distutils-sig/2009-May/011933.html

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-20 Thread Tarek Ziadé
On Tue, May 19, 2009 at 10:36 PM, P.J. Eby wrote: > > Now, about the APIs... > > I think it would be simpler to have explicit object types representing > things like a directory, a collection of directories, and individual > projects, and these object types should be part of the API. > > Any funct

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread P.J. Eby
At 04:04 PM 5/19/2009 +0200, Tarek Ziadé wrote: On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: > > 1. Why ';' separation, instead of tabs as in PEP 262? Aren't semicolons a > valid character in filenames? I am changing this into a . for now. What about Antoine's idea about doing a quote() o

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Paul Moore
2009/5/19 Tarek Ziadé : > On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: >> >> 1. Why ';' separation, instead of tabs as in PEP 262?  Aren't semicolons a >> valid character in filenames? > > I am changing this into a . for now. I'm not following this thread at all, but can I put a strong vote *

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread MRAB
Tarek Ziadé wrote: On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: 1. Why ';' separation, instead of tabs as in PEP 262? Aren't semicolons a valid character in filenames? I am changing this into a . for now. What about Antoine's idea about doing a quote() on the names ? From my point of

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Tarek Ziadé
On Tue, May 19, 2009 at 4:03 PM, Antoine Pitrou wrote: > Ronald Oussoren mac.com> writes: >> >> Wouldn't it be possible to use a CSV file for this? That way we >> wouldn't have to invent yet another escaping mechanism and there's >> already good suppport for reading and writing CSV files in the >

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Tarek Ziadé
On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: > > 1. Why ';' separation, instead of tabs as in PEP 262?  Aren't semicolons a > valid character in filenames? I am changing this into a . for now. What about Antoine's idea about doing a quote() on the names ? >From my point of view seems more

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Antoine Pitrou
Ronald Oussoren mac.com> writes: > > Wouldn't it be possible to use a CSV file for this? That way we > wouldn't have to invent yet another escaping mechanism and there's > already good suppport for reading and writing CSV files in the > standard library. +1 We can even customize the delim

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Ronald Oussoren
On 17 May, 2009, at 15:04, MRAB wrote: Alexander Shigin wrote: В Сбт, 16/05/2009 в 23:15 +0100, MRAB пишет: FYI, on RISC OS '/' is a valid filename character and '.' is used as the directory separator. I'd probably say that TAB is s reasonable character to use, even though it's OK in POSIX;

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-17 Thread MRAB
Alexander Shigin wrote: В Сбт, 16/05/2009 в 23:15 +0100, MRAB пишет: FYI, on RISC OS '/' is a valid filename character and '.' is used as the directory separator. I'd probably say that TAB is s reasonable character to use, even though it's OK in POSIX; after all, should anyone really be using a

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Alexander Shigin
В Сбт, 16/05/2009 в 23:15 +0100, MRAB пишет: > FYI, on RISC OS '/' is a valid filename character and '.' is used as > the directory separator. > > I'd probably say that TAB is s reasonable character to use, even > though it's OK in POSIX; after all, should anyone really be using a > control charac

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Alexander Shigin
В Сбт, 16/05/2009 в 13:26 -0700, Glenn Linderman пишет: > On approximately 5/16/2009 1:08 PM, came the following characters from > the keyboard of Martin v. Löwis: > > Yes, this: > > > > http://msdn.microsoft.com/en-us/library/aa365247.aspx > > Well, maybe he was missing that, or maybe he was mis

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Antoine Pitrou
MRAB mrabarnett.plus.com> writes: > > I'd probably say that TAB is s reasonable character to use, even though > it's OK in POSIX; after all, should anyone really be using a control > character in a filename? Even newline characters are valid characters in a filename. Why not go for the safe choi

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread MRAB
Glenn Linderman wrote: On approximately 5/16/2009 11:58 AM, came the following characters from the keyboard of P.J. Eby: At 11:17 AM 5/16/2009 -0700, Glenn Linderman wrote: On approximately 5/16/2009 9:55 AM, came the following characters from the keyboard of P.J. Eby: At 06:06 PM 5/16/2009 +0

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Glenn Linderman
On approximately 5/16/2009 1:08 PM, came the following characters from the keyboard of Martin v. Löwis: Alexander Shigin wrote: В Сбт, 16/05/2009 в 14:58 -0400, P.J. Eby пишет: ";" *is* valid in Windows filenames, actually. Tabs aresn't. I was sure ';' is separator for PATH in Windows. Do I mi

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Martin v. Löwis
Alexander Shigin wrote: > В Сбт, 16/05/2009 в 14:58 -0400, P.J. Eby пишет: >> ";" *is* valid in Windows filenames, actually. Tabs aresn't. > > I was sure ';' is separator for PATH in Windows. Do I miss something? Yes, this: http://msdn.microsoft.com/en-us/library/aa365247.aspx Regards, Martin

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Alexander Shigin
В Сбт, 16/05/2009 в 14:58 -0400, P.J. Eby пишет: > ";" *is* valid in Windows filenames, actually. Tabs aresn't. I was sure ';' is separator for PATH in Windows. Do I miss something? If I remember right os.path.pathsep is ';' under Windows. ___ Python-D

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Glenn Linderman
On approximately 5/16/2009 11:58 AM, came the following characters from the keyboard of P.J. Eby: At 11:17 AM 5/16/2009 -0700, Glenn Linderman wrote: On approximately 5/16/2009 9:55 AM, came the following characters from the keyboard of P.J. Eby: At 06:06 PM 5/16/2009 +0200, Tarek Ziadé wrote:

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread P.J. Eby
At 11:17 AM 5/16/2009 -0700, Glenn Linderman wrote: On approximately 5/16/2009 9:55 AM, came the following characters from the keyboard of P.J. Eby: At 06:06 PM 5/16/2009 +0200, Tarek Ziadé wrote: Ok I've changed the PEP with all the points you mentioned, if you want to take a look. Some notes

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Glenn Linderman
On approximately 5/16/2009 9:55 AM, came the following characters from the keyboard of P.J. Eby: At 06:06 PM 5/16/2009 +0200, Tarek Ziadé wrote: Ok I've changed the PEP with all the points you mentioned, if you want to take a look. Some notes: 1. Why ';' separation, instead of tabs as in PEP

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread P.J. Eby
At 06:06 PM 5/16/2009 +0200, Tarek Ziadé wrote: Ok I've changed the PEP with all the points you mentioned, if you want to take a look. Some notes: 1. Why ';' separation, instead of tabs as in PEP 262? Aren't semicolons a valid character in filenames? 2. "if the installed file is located in

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Tarek Ziadé
Yes, I don't think it's relevant to optimize install/uninstall code in Python. In the whole PEP 376 proposal, the only part that will need care will be the code that browses sys.path. On Fri, May 15, 2009 at 9:50 AM, Dirkjan Ochtman wrote: > On Fri, May 15, 2009 at 8:32 AM, Jeroen Ruigrok van de

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-16 Thread Tarek Ziadé
Ok I've changed the PEP with all the points you mentioned, if you want to take a look. 2009/5/15 P.J. Eby : > Next, the doc for the metadata API functions seems quite sparse.  ISTR that > I've previously commented on such issues as case- and > punctuation-insensitivity of project names, and '/' se

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread Tony Nelson
At 13:52 -0400 05/15/2009, P.J. Eby wrote: >At 08:32 AM 5/15/2009 +0200, Jeroen Ruigrok van der Werven wrote: >>Agreed. Within FreeBSD's ports the installed package registration >>gets a MD5 hash per file recorded. Size is less interesting though, >>since essentially this information is encapsulate

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread P.J. Eby
At 08:32 AM 5/15/2009 +0200, Tarek Ziadé wrote: 2009/5/15 P.J. Eby : > Ideally, a file with identical size/checksum that > belongs to more than one project should be silently left alone, and a file > installed by more than one project with *different* size/checksum should be > warned about and l

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread P.J. Eby
At 08:32 AM 5/15/2009 +0200, Jeroen Ruigrok van der Werven wrote: Agreed. Within FreeBSD's ports the installed package registration gets a MD5 hash per file recorded. Size is less interesting though, since essentially this information is encapsulated within the hash. Remove one byte from the fi

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-15 Thread Dirkjan Ochtman
On Fri, May 15, 2009 at 8:32 AM, Jeroen Ruigrok van der Werven wrote: > Agreed. Within FreeBSD's ports the installed package registration gets a MD5 > hash per file recorded. Size is less interesting though, since essentially > this information is encapsulated within the hash. Remove one byte from

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-14 Thread Tarek Ziadé
2009/5/15 P.J. Eby : > At 12:21 AM 5/15/2009 +0200, Tarek Ziadé wrote: >> >> Hello >> >> I'm proposing this PEP, which has been discussed in Distutils-SIG, for >> inclusion in Python 2.7 and 3.2 >> >> http://www.python.org/dev/peps/pep-0376/ >> >> Please comment ! > > I'd like to reiterate my sugge

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-14 Thread Jeroen Ruigrok van der Werven
-On [20090515 06:59], P.J. Eby (p...@telecommunity.com) wrote: >I'd like to reiterate my suggestion that the uninstall record include >size and checksum information, ala PEP 262's "FILES" section. This >would allow the uninstall function to validate whether a file has >been modified, and thus p

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-14 Thread P.J. Eby
At 12:21 AM 5/15/2009 +0200, Tarek Ziadé wrote: Hello I'm proposing this PEP, which has been discussed in Distutils-SIG, for inclusion in Python 2.7 and 3.2 http://www.python.org/dev/peps/pep-0376/ Please comment ! I'd like to reiterate my suggestion that the uninstall record include size a

[Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-14 Thread Tarek Ziadé
Hello I'm proposing this PEP, which has been discussed in Distutils-SIG, for inclusion in Python 2.7 and 3.2 http://www.python.org/dev/peps/pep-0376/ Please comment ! Tarek -- Tarek Ziadé | http://ziade.org ___ Python-Dev mailing list Python-Dev@pyt