Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-18 Thread KoDer
2007/2/17, Phillip J. Eby <[EMAIL PROTECTED]>: > > I don't follow you; this has nothing to do with setuptools. It's a feature > of Python since version 2.3, > I mean install/update/delete package to exist zip archive, which may contain many other packages(some time it's hart to understand what i

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-17 Thread Phillip J. Eby
At 01:25 PM 2/17/2007 +0200, KoDer wrote: >C:\\Python25\\lib\\. contain *many* packages with .dll files - i can't >just zip it. >wxPython,pyOpenGL,PIL,tk and so on. On Fedora 6 more than 40% dirs of >/usr/lib/site-packages contained .so files. Some of them add dirs to path >(wx,PIL,Gtk,...). I'm n

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-17 Thread Martin v. Löwis
KoDer schrieb: > open("/usr/lib/python2.4/site-packages/Durus-3.6-py2.4-linux-i686.egg", > O_RDONLY|O_LARGEFILE) = 6 > .. > _llseek(6, 98304, [98304], SEEK_SET)= 0 > read(6, "\340\377\224\322\373C\200\177.\245\367\205\0\307x\207\r"..., > 4096) = 4096 > _llseek(6, 102400, [102400], SEEK_SET)

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-17 Thread KoDer
> Right -- most of your problem will be solved by creating > 'C:\\WINDOWS\\system32\\python25.zip', containing the contents of > C:\\Python25\\lib\\. C:\\Python25\\lib\\. contain *many* packages with .dll files - i can't just zip it. wxPython,pyOpenGL,PIL,tk and so on. On Fedora 6 more than 40% di

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-16 Thread Paul Moore
On 16/02/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > Hm. Interesting, actually. Does anybody know why it's looking for > 'C:\\WINDOWS\\system32\\python25.zip'? That seems wrong to me. It looks alongside python25.dll, which is installed in windows\system32 by default. If you then ask why th

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-16 Thread Phillip J. Eby
At 07:29 PM 2/16/2007 +0200, KoDer wrote: >2007/2/16, Phillip J. Eby <[EMAIL PROTECTED]>: > > At 04:38 PM 2/16/2007 +0200, KoDer wrote: >. > > > > > > Also, are you aware that putting a zipped version of the standard library > > on sys.path already speeds up startup considerably? Python since

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-16 Thread KoDer
2007/2/16, Phillip J. Eby <[EMAIL PROTECTED]>: > At 04:38 PM 2/16/2007 +0200, KoDer wrote: . > > > Also, are you aware that putting a zipped version of the standard library > on sys.path already speeds up startup considerably? Python since 2.3 > automatically includes an appropriate entry in s

Re: [Python-Dev] urllib2 EP + decr. startup time

2007-02-16 Thread Phillip J. Eby
At 04:38 PM 2/16/2007 +0200, KoDer wrote: >'strace' command shows next: most of startup time the interpreter >try to find imported modules. >And most of them finished with 'not found' error, because of large >size of sys.path variable. >In future this time will be increase - setuptools

[Python-Dev] urllib2 EP + decr. startup time

2007-02-16 Thread KoDer
Hello to all. During more than two years i widely use urllib2 to write commercial applications (almost for extracting data from web sites to excel sheets) and here is some enhanced enhanced for it: 1) Add support for 'HEAD' request (and maybe some other). This needs small changes. a)Add reques