Using the distutils-r1, something like: python_install() { insinto /usr/lib/python-bin/${EPYTHON} doins foo.py } That's being run in parallel. It's supposed to install file with the same basename in multiple directories. Sadly, it fails like: /usr/bin/install: nie można wykonać stat na „/tmp/portage/dev-python/docutils-0.10/temp/buildhtml.py”: Nie ma takiego pliku ani katalogu !!! doins: /tmp/portage/dev-python/docutils-0.10/temp/buildhtml.py does not exist * ERROR: dev-python/docutils-0.10::gentoo-cvs failed (install phase): * doins failed which clearly shows that the parallel instances collide in temporary directory. Please fix portage to either not use temporary files at all here, or to create proper unique names.
This should fix it: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=74197ee20c4c4d85c3db1334c70f029e342d7bb0
Also fix doexe and newins: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=00b56f2ddc85542a277e83513bc9b09f63fca551
This is fixed in 2.2.2.