Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-11411

On python3 sys.platform is linux and not linux2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Qserv
    • Labels:
      None

      Description

      I just tried building Qserv on python3 on linux and it failed with:

      Unsupported platform or toolchain: linux/gcc
      

      As described in http://bugs.python.org/issue12326 from python3.3 onwards sys.platform uses linux so as not to confuse linux2 and linux3. Simple fix required in site_scons/site_tools/compiler.py.

        Attachments

          Issue Links

            Activity

            Hide
            salnikov Andy Salnikov added a comment -

            Should be a quick review I tested with both python2 and python3 (using tickets/DM-8560 branch of scons), builds OK with both.

            Show
            salnikov Andy Salnikov added a comment - Should be a quick review I tested with both python2 and python3 (using tickets/ DM-8560 branch of scons), builds OK with both.
            Hide
            tjenness Tim Jenness added a comment -

            Thanks for quick turnaround.

            Show
            tjenness Tim Jenness added a comment - Thanks for quick turnaround.
            Hide
            salnikov Andy Salnikov added a comment -

            Thanks for review, merged and done.

            Show
            salnikov Andy Salnikov added a comment - Thanks for review, merged and done.

              People

              Assignee:
              salnikov Andy Salnikov
              Reporter:
              tjenness Tim Jenness
              Reviewers:
              Tim Jenness
              Watchers:
              Andy Salnikov, Fritz Mueller, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.