Ran into a problem with setuptools 0.6a5 on Windows where a console_script is named the same as a top-level package.

This problem doesn't occur on Linux, presumably because the installed script does not have a .py extension to confuse the import of a same-named package.

Excerpt from setup.py:

    entry_points = {
    'console_scripts': ['schevo = schevo.script.main:start'],
    }

Traceback on Windows when running the installed schevo.exe:

Traceback (most recent call last):
  File "c:\python24\scripts\schevo.py", line 7, in ?
    sys.exit(
  File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p
y", line 236, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p
y", line 1892, in load_entry_point
    return ep.load()
  File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p
y", line 1625, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "c:\python24\scripts\schevo.py", line 7, in ?
    sys.exit(
  File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p
y", line 236, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p
y", line 1892, in load_entry_point
    return ep.load()
  File "c:\python24\lib\site-packages\setuptools-0.6a5-py2.4.egg\pkg_resources.p
y", line 1625, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named script.main

Thanks,

--
Matthew R. Scott