Created attachment 380226 [details] build log On my hardened ~amd64 box I see the following error. >>> Compiling source in /var/tmp/portage/dev-python/pygame-1.9.2_pre20120101-r2/work/pygame-1.9.2_pre20120101 ... * python3_3: running distutils-r1_run_phase python_compile * python2_7: running distutils-r1_run_phase python_compile /usr/bin/python3.3 setup.py build /usr/bin/python2.7 setup.py build Traceback (most recent call last): File "setup.py", line 104, in <module> import bdist_mpkg_support File "/var/tmp/portage/dev-python/pygame-1.9.2_pre20120101-r2/work/pygame-1.9.2_pre20120101-python3_3/bdist_mpkg_support.py", line 4, in <module> pkg_resources.require('bdist_mpkg>=0.4.2') File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 742, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 624, in resolve env = Environment(self.entries) File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 799, in __init__ self.scan(search_path) File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 829, in scan self.add(dist) File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 849, in add dists.sort(key=operator.attrgetter('hashcmp'), reverse=True) TypeError: unorderable types: NoneType() < str()
Created attachment 380228 [details] emerge --info
~/cvsPortage/gentoo-x86/dev-python/pygame $ ebuild pygame-1.9.2_pre20120101-r2.ebuild clean compile >>> Source compiled. So could not replicate and it's not a bug but something different in your system. You have the same Python 3.3.5, not that, so perhaps some other version conflict or outside chance a gcc flag setting but I doubt it.
Created attachment 386956 [details, diff] patch to remove problematic nop I just ran into this issue again on a new setup. I applied the attached patch which fixed the issue for me. The affected functionality is for Mac/Darwin, so I think it would be safe to apply this patch in general.
What version of dev-python/setuptools do you have installed?
(In reply to Mike Gilbert from comment #4) > What version of dev-python/setuptools do you have installed? I have setuptools-6.1 installed.
I confirm this
+ 28 Feb 2015; Pacho Ramos <pacho@gentoo.org> + +files/pygame-1.9.2_pre20120101-import-bdist.patch, + -pygame-1.9.2_pre20120101-r1.ebuild, pygame-1.9.2_pre20120101-r2.ebuild: + Workaround bug #516434 until a better fix is found (thanks to Markus Oehme), + drop old. +
This should be fixed in 1.9.3 now in the tree.