[LLVMbugs] [Bug 12900] New: Python scripts assume that "/usr/bin/env python" is python2

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 20 15:16:39 PDT 2012


             Bug #: 12900
           Summary: Python scripts assume that "/usr/bin/env python" is
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jed at 59a2.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The build scripts are written in python2, but "/usr/bin/env python" is python3
on some systems (e.g. Arch Linux). There are at least two solutions

1. Add a --with-python=/path/to/python configure flag so the user can choose a
compatible version. Then invoke the scripts using ${PYTHON} path/to/script.py.

2. Make the scripts hybrid python2/python3. This should be easy if you can
assume python2.6 or later (to support importing print_function from

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