Skip to content

Commit fcbc86a

Browse files
authored
feat: add mac universal installer (microsoft#442)
1 parent 32e5ce8 commit fcbc86a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ def run(self) -> None:
9595
from_path = os.path.join(dir_path, file)
9696
to_path = os.path.relpath(from_path, driver_root)
9797
zip.write(from_path, f"playwright/driver/{to_path}")
98+
if platform == "mac":
99+
# Ship mac both as 10_13 as and 11_0 universal to work across Macs.
100+
universal_location = without_platform + "macosx_11_0_universal2.whl"
101+
shutil.copyfile(wheel_location, universal_location)
102+
with zipfile.ZipFile(universal_location, "a") as zip:
103+
zip.writestr("playwright/driver/README.md", "Universal Mac package")
104+
98105
os.remove(base_wheel_location)
99106

100107

@@ -108,7 +115,7 @@ def run(self) -> None:
108115
url="https://github.com/Microsoft/playwright-python",
109116
packages=["playwright"],
110117
include_package_data=True,
111-
install_requires=["greenlet==1.0a1", "pyee>=8.0.1", "typing-extensions"],
118+
install_requires=["greenlet==1.0.0", "pyee>=8.0.1", "typing-extensions"],
112119
classifiers=[
113120
"Topic :: Software Development :: Testing",
114121
"Topic :: Internet :: WWW/HTTP :: Browsers",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy