Distutils fails to build

Hi, I have been trying to reinstall distutils-0.6.14 on my gentoo system after some file corruption and now distutils fails to build.
When manually building from source it throws the following error:
*python2.6 setup.py build* Traceback (most recent call last): File "setup.py", line 211, in <module> scripts = scripts, File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup _setup_distribution = dist = klass(attrs) File "/home/oisin/source/distribute-0.6.14/setuptools/dist.py", line 222, in __init__ for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): File "/home/oisin/source/distribute-0.6.14/pkg_resources.py", line 454, in iter_entry_points entries = dist.get_entry_map(group) File "/home/oisin/source/distribute-0.6.14/pkg_resources.py", line 2252, in get_entry_map self._get_metadata('entry_points.txt'), self File "/home/oisin/source/distribute-0.6.14/pkg_resources.py", line 2038, in parse_map raise ValueError("Entry points must be listed in groups") ValueError: Entry points must be listed in groups
Anyone got any idea what is causing this? This is preventing me from reinstalling allot of packages on my system, so any help would be greatly appreciated.
I have a tread on the gentoo forums with more info on the problem if anyone is interested; http://forums.gentoo.org/viewtopic-t-854323.html
Thanks.

On Sun, Nov 28, 2010 at 1:44 PM, Oisin O'Maley ninja.gofer@gmail.com wrote:
Hi, I have been trying to reinstall distutils-0.6.14 on my gentoo system after some file corruption and now distutils fails to build.
When manually building from source it throws the following error:
Looks like a formatting issue in entry_points...like a missing [ or ]
Was this from the source at PyPI or a source from Gentoo ?
Try this:
import pkg_resources list(pkg_resources.split_sections(open('distribute.egg-info/entry_points.txt').read()))
If it fails on Gentoo but works from the PyPI, you likely to have a typo there.
Note: the egg-info dir is created with "python setup.py egg_info"
participants (2)
-
Oisin O'Maley
-
Tarek Ziadé