<br><br><div class="gmail_quote">On Mon, Oct 1, 2012 at 10:47 PM, Matthew Brett <span dir="ltr"><<a href="mailto:matthew.brett@gmail.com" target="_blank">matthew.brett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div><div class="h5"><br>
On Mon, Oct 1, 2012 at 9:42 PM, Matthew Brett <<a href="mailto:matthew.brett@gmail.com">matthew.brett@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> One of our kind users pointed out an error when using easy_install to<br>
> install our package nipy.   I've reproduced it now on a bare package<br>
> using numpy distutils and having a trivial extension:<br>
><br>
> <a href="https://github.com/matthew-brett/apkg" target="_blank">https://github.com/matthew-brett/apkg</a><br>
><br>
> To reproduce:<br>
><br>
> git clone git://<a href="http://github.com/mathew-brett/apkg.git" target="_blank">github.com/mathew-brett/apkg.git</a><br>
><br>
> easy_install apkg<br>
><br>
> You should get something like this:<br>
><br>
> Processing apkg<br>
> Running setup.py -q bdist_egg --dist-dir<br>
> /home/mb312/tmp/apkg/egg-dist-tmp-T5yjuB<br>
> Appending apkg configuration to<br>
> Ignoring attempt to set 'name' (from '' to 'apkg')<br>
> zip_safe flag not set; analyzing archive contents...<br>
> Adding apkg 0.1 to easy-install.pth file<br>
><br>
> Installed /home/mb312/.virtualenvs/np-1.6.2/lib/python2.6/site-packages/apkg-0.1-py2.6-linux-i686.egg<br>
> Processing dependencies for apkg==0.1<br>
> Finished processing dependencies for apkg==0.1<br>
> /home/mb312/.virtualenvs/np-1.6.2/lib/python2.6/site-packages/numpy/distutils/misc_util.py:252:<br>
> RuntimeWarning: Parent module 'numpy.distutils' not found while<br>
> handling absolute import<br>
>   from numpy.distutils import log<br>
><br>
> Note the last error.<br>
<br>
</div></div>Sorry, correcting myself - it's (obviously) a Warning rather than an<br>
error, but still distracting, and it would be good to avoid it if<br>
possible...<br></blockquote><div><br>The combination of two or all of atexit.register, easy_install and virtualenv seems to be causing this. Unless someone feels like digging into that (I certainly don't), there are two easy solutions:<br>
1. Silence the warning.<br>2. Remove the offending import and the logging. This will only remove the line "removing: _configtest.c _configtest.o" from the build log (x20).<br><br>Ralf<br><br></div></div>