### Description

Moves the logic of generating zip archive of a shared library from `buildall` to `buildpkg` so that thread-unsafe `shutil.make_archive` won't bother us anymore.

Move making archive of shared libraries to buildpkg. ### Description

Moves the logic of generating zip archive of a shared library from `buildall` to `buildpkg` so that thread-unsafe `shutil.make_archive` won't bother us anymore.

from pyodide_build.testing import set_webdriver_script_timeout


class _MockSelenium:
    script_timeout = 2

    def set_script_timeout(self, value):
        self._timeout = value


def test_set_webdriver_script_timeout():
    selenium = _MockSelenium()
    assert not hasattr(selenium, "_timeout")
    with set_webdriver_script_timeout(selenium, script_timeout=10):
        assert selenium._timeout == 10
    assert selenium._timeout == 2

from pyodide_build.testing import set_webdriver_script_timeout


class _MockSelenium:
    script_timeout = 2

    def set_script_timeout(self, value):
        self._timeout = value


def test_set_webdriver_script_timeout():
    selenium = _MockSelenium()
    assert not hasattr(selenium, "_timeout")
    with set_webdriver_script_timeout(selenium, script_timeout=10):
        assert selenium._timeout == 10
    assert selenium._timeout == 2
