Mantis - py_setuptools
Viewing Issue Advanced Details
3907 packaging minor have not tried 2009-09-17 22:10 2010-02-26 00:23
trygvis  
maciej  
normal  
closed  
fixed  
none    
none  
0003907: Missing dependency on "python_devel"
When importing my public key I got a python exception about a missing distutils module.

$ gitosis-init < /tmp/id_dsa.pub
Traceback (most recent call last):
  File "/opt/csw/bin/gitosis-init", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 657, in <module>
    class Environment(object):
  File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 660, in Environment
    def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR):
  File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 55, in get_supported_platform
    plat = get_build_platform(); m = macosVersionString.match(plat)
  File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 186, in get_build_platform
    from distutils.util import get_platform
ImportError: No module named distutils.util

Installing python_devel fixed it.

Not sure if gitosis is missing the dependency, it seems to be used by setuptools.
Issue History
2009-09-17 22:10 trygvis New Issue
2009-09-17 23:40 skayser Project gitosis => py_setuptools
2010-02-26 00:20 maciej Note Added: 0007523
2010-02-26 00:20 maciej Status new => closed
2010-02-26 00:20 maciej Resolution open => fixed
2010-02-26 00:23 maciej Assigned To => maciej
2010-02-26 00:23 maciej Status closed => assigned
2010-02-26 00:23 maciej Status assigned => closed

Notes
(0007523)
maciej   
2010-02-26 00:20   
distutils have been moved to CSWpython, this issue is now fixed.