[Numpy-discussion] Setuptools leftover junk

Fernando Perez fperez.net at gmail.com
Wed Jun 28 12:51:45 CDT 2006


Hi all,

I recently noticed one of my in-house projects started leaving aroun
.egg-info directories after I ran its setup.py, even though I don't
use setuptools for anything at all.  For now I just added an extra
clean rule to my makefile and forgot about it, but it kind of annoyed
me.

Today I looked at the temp directory where I've been making my
numpy/scipy installs from SVN, and here's what I saw:

longs[site-packages]> d
/home/fperez/tmp/local/lib/python2.4/site-packages
total 228
drwxr-xr-x  2 fperez   4096 2006-06-21 22:16 dateutil/
drwxr-xr-x  7 fperez   4096 2006-06-28 02:50 matplotlib/
drwxr-xr-x 13 fperez   4096 2006-06-28 02:38 numpy/
drwxr-xr-x  2 fperez   4096 2006-06-21 21:28 numpy-0.9.9.2660-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-22 21:29 numpy-0.9.9.2665-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-24 11:33 numpy-0.9.9.2674-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-24 15:08 numpy-0.9.9.2675-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-25 12:40 numpy-0.9.9.2677-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-26 23:32 numpy-0.9.9.2691-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-28 02:38 numpy-0.9.9.2696-py2.4.egg-info/
-rw-r--r--  1 fperez     31 2006-03-18 20:11 pylab.py
-rw-r--r--  1 fperez    178 2006-06-24 13:29 pylab.pyc
drwxr-xr-x 20 fperez   4096 2006-06-28 11:20 scipy/
drwxr-xr-x  2 fperez   4096 2006-06-21 21:36 scipy-0.5.0.1990-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-22 21:36 scipy-0.5.0.1998-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-24 15:15 scipy-0.5.0.1999-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-25 12:46 scipy-0.5.0.2000-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-26 23:37 scipy-0.5.0.2004-py2.4.egg-info/
drwxr-xr-x  2 fperez   4096 2006-06-28 02:48 scipy-0.5.0.2012-py2.4.egg-info/


Is it really necessary to have all that setuptools junk left around,
for those of us who aren't asking for it explicitly?  My personal
opinions on setuptools aside, I think it's just a sane practice not to
create this kind of extra baggage unless explicitly requested.

I scoured my home directory for any .file which might be triggering
this inadvertedly, but I can't seem to find any, so I'm going to guess
this is somehow being caused by numpy's own setup.  If it's my own
mistake, I'll be happy to be shown how to coexist peacefully with
setuptools.

Since this also affects user code (I think via f2py or something
internal to numpy, since all I'm calling is f2py in my code), I really
think it would be nice to clean it.

Opinions?

f




More information about the Numpy-discussion mailing list