[LLVMbugs] [Bug 7850] New: check-lit is incompatible with Python 2.4 on CentOS5

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 9 08:36:52 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7850

           Summary: check-lit is incompatible with Python 2.4 on CentOS5
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: geek4civic at gmail.com
                CC: llvmbugs at cs.uiuc.edu


CentOS release 5.5 (Final)
python-2.4.3-27.el5.x86_64

$ python -V
Python 2.4.3

Traceback (most recent call last):
  File "/home/chapuni/llvm/utils/lit/lit.py", line 4, in ?
    import lit
  File "/home/chapuni/llvm/utils/lit/lit/__init__.py", line 3, in ?
    from lit import main
  File "/home/chapuni/llvm/utils/lit/lit/lit.py", line 12, in ?
    import TestRunner
  File "/home/chapuni/llvm/utils/lit/lit/TestRunner.py", line 523
    status = Test.XFAIL if ok else Test.XPASS
                         ^
SyntaxError: invalid syntax
make[1]: *** [check-local-lit] Error 1

There are some options;

1) Rewrite python scripts suitable to older version. (is it easier?)
2) Check version with autoconf or tests/Makefile.
3) Require to install expected version of python.
omega) Say "Unsupported platform" :(

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list