Package: python2.4
Version: 2.4.5-1
Severity: normal
Hi,
I was trying to locate where a particular Python package was on disk --
the quickest way I could think of was doing:
strace -eopen python -c 'import foo'
When I did that, I noticed a number of directories mentioned that will
never exist on Debian (or, even Linux) being stat'd.
eve:[~]% strace -eopen python -c 'import foo' 2>&1 | head -15
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/i686/cmov/libpthread.so.0", O_RDONLY) = 3
open("/lib/i686/cmov/libdl.so.2", O_RDONLY) = 3
open("/lib/i686/cmov/libutil.so.1", O_RDONLY) = 3
open("/lib/i686/cmov/libm.so.6", O_RDONLY) = 3
open("/lib/i686/cmov/libc.so.6", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY) = 3
open("/usr/lib/python24.zip/site.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python24.zip/sitemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
open("/usr/lib/python24.zip/site.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python24.zip/site.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.4/site.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or directory)
open("/usr/lib/python2.4/sitemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/lib/python2.4/site.py", O_RDONLY|O_LARGEFILE) = 3
open("/usr/lib/python2.4/site.pyc", O_RDONLY|O_LARGEFILE) = 4
Obviously /usr/lib/python24.zip is not required. Removing this directory
may make Python startup faster.
Thanks,
Anand
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python2.4 depends on:
ii libbz2-1.0 1.0.5-0.1 high-quality block-sorting file co
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libdb4.5 4.5.20-11 Berkeley v4.5 Database Libraries [
ii libncursesw5 5.6+20080308-1 Shared libraries for terminal hand
ii libreadline5 5.2-3 GNU readline and history libraries
ii libssl0.9.8 0.9.8g-8 SSL shared libraries
ii mime-support 3.40-1.1 MIME files 'mime.types' & 'mailcap
ii python2.4-minimal 2.4.5-1 A minimal subset of the Python lan
python2.4 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]