Issue #342 resolved

0.6.33 fails to build under python 2.4

Joshua Root
created an issue

Running setup.py with python2.4 fails thus:

Traceback (most recent call last):
  File "setup.py", line 45, in ?
    exec(init_file.read(), d)
  File "<string>", line 8, in ?
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-distribute/py24-distribute/work/distribute-0.6.33/setuptools/__init__.py", line 2, in ?
    from setuptools.extension import Extension, Library
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-distribute/py24-distribute/work/distribute-0.6.33/setuptools/extension.py", line 5, in ?
    from setuptools.dist import _get_unpatched
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-distribute/py24-distribute/work/distribute-0.6.33/setuptools/dist.py", line 6, in ?
    from setuptools.command.install import install
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-distribute/py24-distribute/work/distribute-0.6.33/setuptools/command/__init__.py", line 8, in ?
    from setuptools.command import install_scripts
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-distribute/py24-distribute/work/distribute-0.6.33/setuptools/command/install_scripts.py", line 3, in ?
    from pkg_resources import Distribution, PathMetadata, ensure_directory
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-distribute/py24-distribute/work/distribute-0.6.33/pkg_resources.py", line 1769
    yield item
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause

Since 0.6.32 worked and the release notes don't mention dropping support for Python 2.4, I assume this is a bug.

Comments (3)

  1. Log in to comment