[Webkit-unassigned] [Bug 184986] New: Eliminate python2 dependency

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 25 11:34:54 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=184986

            Bug ID: 184986
           Summary: Eliminate python2 dependency
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com
                CC: lforschler at apple.com
        Depends on: 156674

python2 is going away on Linux, so we need to convert our scripts to be compatible with python3. But macOS does not have python2, so we need to be careful to maintain python2 compatibility. This means we should keep the existing #!/usr/bin/env python shebangs and just test all our scripts to ensure they work with /usr/bin/python symlinked to python3.

Let's do this in five stages, using separate bugs:

 (1) Ensure it's possible to build a tarball, using CMake directly. Bug #156674
 (2) Ensure it's possible to build using build-webkit.
 (3) Ensure the most important developer scripts work (webkit-patch, prepare-ChangeLog)
 (4) Ensure test-webkitpy passes.
 (5) Port other scripts on an as-needed basis.

(1) Is the most urgent, as python3 patches are already required to build WebKit on the next SUSE and RHEL distros. This should be pretty easy.

(2) Is where things will get difficult.

(4) At this point, we should be able to switch our Linux bots to using python3. This will be a longer-term effort, but we should still try to finish in advance of 2020.

(5) is optional work that we can do as-needed. We don't need to port anything that's not tested by webkitpy and which we are not actively using ourselves.

Somebody pointed me towards https://portingguide.readthedocs.io/en/latest/, which I haven't read yet, but which might be helpful.

Also, Konstantin suggested run 'pylint --py3k' in the style checker, to make it a bit less likely that developers using python2 break developers using python3. (It's inevitable, but we're going to be stuck with that until macOS gets python3.) Would be nice if we could find a way to check for python3-isms as well, to prevent developers using python3 from breaking developers using python2 (which is also inevitable).


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=156674
[Bug 156674] Build tools should work when the /usr/bin/python is python3
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180425/cab2389e/attachment.html>


More information about the webkit-unassigned mailing list