#21 Python 2.7 support for setup.py

v1.0 (example)
closed-fixed
nobody
None
5
2014-01-30
2011-12-22
No

The default setup.py does not support python version 2.7 (installed version on my pc is stock python 2.7.2, windows 7 64-bit).

SOLUTION:
In setup.py file line 42 remove DistutilsOptionError and then add the following line
from distutils.errors import DistutilsOptionError

WARNING:
comtypes is installed after the changes above. I haven't tested it though!

Discussion

  • Hello, I've just noticed that theller has commited this same solution to the trunk (revision 576, April 2011). The commit is referencing some issue "SF #3036369" in the comments, so this seems to be a duplicate, though I couldn't find such ticket in Sourceforge. Anyway, this bug report should better be closed. I've tested on my AMD64 Windows 7 and it is working fine with Python 2.7.2 (at least I'm able to run pyjamas examples).

     
  • John Schmitt
    John Schmitt
    2012-10-27

    Is this why pip and easy_install fail?

     
  • wiggin15
    wiggin15
    2014-01-29

    Looks like this is fixed, setup.py doesn't include the problematic DistutilsOptionError, and works for Python 2.7. This ticket can be closed.

     
    • status: open --> closed-fixed
    • Group: --> v1.0 (example)