TMG-nl / openstack-overlay

An overlay with the required ebuilds to install and run Openstack on Gentoo Linux
20 stars 12 forks source link

anyjson build fails, tries to use setuptools and python 3 #8

Open twork opened 11 years ago

twork commented 11 years ago

I'm trying to emerge nova using the overlay for the first time on a freshly updated Gentoo x86_64 machine. When it gets to anyjson, the build fails; excerpt:

 * Building of dev-python/anyjson-0.3.3 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
running build_py
creating build-2.7
creating build-2.7/lib
creating build-2.7/lib/anyjson
copying anyjson/__init__.py -> build-2.7/lib/anyjson
warning: build_py: byte-compiling is disabled, skipping.

 * Building of dev-python/anyjson-0.3.3 with CPython 3.2...
python3.2 setup.py build -b build-3.2
Traceback (most recent call last):
  File "setup.py", line 9, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools

That looks to me like it runs fine once using python-2.7, then tries to build again with python-3.2, which, of course, fails when it tries to use setuptools. In the anyjson ebuild, I find:

EAPI=3
PYTHON_DEPEND=2
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="3.*"

I find that "RESTRICT" setting in a lot of the ebuilds in the overlay so I assume that's the tweak mentioned in the overlay's documentation page to prevent building with Python 3. Is that right? But if so, why isn't it working for this package? Could there be something missing from this ebuild?