[Webkit-unassigned] [Bug 224669] New: AutoInstaller should name directory based on ABI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 16 06:08:56 PDT 2021


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

            Bug ID: 224669
           Summary: AutoInstaller should name directory based on ABI
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gsnedders at apple.com

Currently we install Python libraries in python-2 and python-3, based on:

Tools/Scripts/webkitpy/__init__.py
34:AutoInstall.set_directory(os.path.join(libraries, 'autoinstalled', 'python-{}'.format(sys.version_info[0])))

However, this is really an oversimplification of Python ABIs. Notably, while there's generally ABI compatibility between bug fix releases, there aren't between minor releases (e.g., Python 3.8 and Python 3.9).

Basing something on PEP 3147 (https://www.python.org/dev/peps/pep-3147/) probably makes a fair bit of sense. Essentially, on Python 3, we should at least use sys.implementation.cache_tag instead.

Given we do care about ABI here, we probably should even care about ABI detail; CPython uses SOABI (accessible via sysconfig.get_config_var("SOABI")) for this, but this only exists on POSIX-like systems. In reality, we probably don't need to store the platform in the string, so we can probably just use sys.implementation.cache_tag + sys.abiflags?

Opinions?

-- 
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/20210416/512905a5/attachment.htm>


More information about the webkit-unassigned mailing list