Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-8590

Configure should reject too new python versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • build, python api

    Description

      If a user tries to enable Python support in an autotools build, but a python3 is found, they will currently see

      configure:24930: checking whether /usr/bin/python3 version >= 2.6
      configure:24939: /usr/bin/python3 -c import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.sp
      Traceback (most recent call last):
      File "<string>", line 4, in <module>
      AttributeError: module 'string' has no attribute 'split'
      

      This is due to m4/python.m4's AM_PYTHON_CHECK_VERSION not supporting python3.

      For the time being a workaround for users is to make sure than ./configure find a python2 first.

      We should check whether we can update this fill from a more recent upstream source; we want to think about consolidating our python-related m4 scripts at this time as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbannier Benjamin Bannier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: