Installing dev-python/werkzeug-0.9.4 failed for me: File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 1426, in _get stream = open(path, 'rb') IOError: [Errno 13] Permission denied: '/usr/lib64/python2.6/site-packages/numpydoc-0.4-py2.6.egg-info/entry_points.txt' * ERROR: dev-python/werkzeug-0.9.4::gentoo failed (compile phase): The cause seems to be permissions on those files: $ ls -la /usr/lib64/python2.6/site-packages/numpydoc-0.4-py2.6.egg-info/ total 68 drwxr-xr-x 2 root root 4096 30. Aug 21:26 . drwxr-xr-x 181 root root 32768 30. Aug 21:09 .. -rw-r----- 1 root root 1 30. Aug 21:26 dependency_links.txt -rw-r----- 1 root root 77 30. Aug 21:26 entry_points.txt -rw-r----- 1 root root 1 1. Okt 2010 not-zip-safe -rw-r----- 1 root root 480 30. Aug 21:26 PKG-INFO -rw-r----- 1 root root 15 30. Aug 21:26 requires.txt -rw-r----- 1 root root 445 30. Aug 21:26 SOURCES.txt -rw-r----- 1 root root 9 30. Aug 21:26 top_level.txt The most likely cause for these seem to be the file permissions as stored in the numpydoc tarball. $ tar tvf numpydoc-0.4.tar.gz | cut -d\ -f-2 | sort | uniq -c 3 drwxr-x--- pauli/pauli 23 -rw-r----- pauli/pauli So here is how I fixed this for myself: # ebuild /usr/portage/dev-python/numpydoc/numpydoc-0.4.ebuild clean prepare # chmod -R a+r /var/tmp/portage/dev-python/numpydoc-0.4/work/numpydoc-0.4 # ebuild /usr/portage/dev-python/numpydoc/numpydoc-0.4.ebuild merge After doing this, the permissions were as expected, and werkzeug emerged fine. I suggest you add a custom src_unpack function to the numpydoc ebuild, and do that chmod there.
I just ran into this myself. *numpydoc-0.4-r1 (07 Sep 2013) 07 Sep 2013; Mike Gilbert <floppym@gentoo.org> +numpydoc-0.4-r1.ebuild, -numpydoc-0.4.ebuild: Fix permissions on egg-info files.