The following is displayed during the make: make[3]: Entering directory `/var/tmp/portage/dev-python/pygtkglext-1.0.1-r1/work/pygtkglext-1.0.1/gtk/gdkgl' (cd . \ && /usr/bin/pygtk-codegen-2.0 \ --register /usr/share/pygtk/2.0/defs/pango-types.defs \ --register /usr/share/pygtk/2.0/defs/atk-types.defs \ --register /usr/share/pygtk/2.0/defs/gdk-types.defs \ --register /usr/share/pygtk/2.0/defs/gtk-types.defs \ --override gdkglext.override \ --prefix pygdkglext gdkglext.defs) > xgen-pygc \ && cp xgen-pygc gdkglext.c \ && rm -f xgen-pygc /usr/bin/pygtk-codegen-2.0: line 11: /usr/local/bin/python: No such file or directory Reproducible: Always Steps to Reproduce: emerge dev-python/pygtklext Actual Results: Emerge exits with the following: * Messages for package dev-python/pygtkglext-1.0.1-r1: * * ERROR: dev-python/pygtkglext-1.0.1-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2289: Called die * The specific snippet of code: * emake || die "emake failed"; * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-python/pygtkglext-1.0.1-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygtkglext-1.0.1-r1/temp/environment'. * Expected Results: The package should merge successfully. Creating a symbolic link from /usr/bin/python to /usr/local/bin/python solved this problem for me.
pygtkglext-1.1.0 works fine here, can you please check that version?
Given this line: /usr/bin/pygtk-codegen-2.0: line 11: /usr/local/bin/python: No such file or directory I believe you did something wrong with your system like installing something by hand to /usr/local. Please clean that up as we can't support this stuff. Also a full build.log and emerge --info might be useful so please don't skip adding them to the bug.
given comment #1 and #2, closing invalid. Please reopen if after applying what's suggested in comment #2 doesn't fix your problem.