From a984edf2e4d23d0bd184c454fe906052e86b4545 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Wed, 3 Sep 2025 22:25:58 -0700 Subject: www/py-playwright: New port: High-level API to automate web browsers --- www/py-playwright/files/patch-setup.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 www/py-playwright/files/patch-setup.py (limited to 'www/py-playwright/files/patch-setup.py') diff --git a/www/py-playwright/files/patch-setup.py b/www/py-playwright/files/patch-setup.py new file mode 100644 index 000000000000..1b7831869548 --- /dev/null +++ b/www/py-playwright/files/patch-setup.py @@ -0,0 +1,28 @@ +--- setup.py.orig 2025-08-28 09:27:29 UTC ++++ setup.py +@@ -74,6 +74,16 @@ base_wheel_bundles = [ + }, + ] + ++# override for FreeBSD: use the Linux one and update the node binary in it ++base_wheel_bundles = [ ++ { ++ "wheel": "manylinux1_x86_64.whl", ++ "machine": platform.machine().lower(), ++ "platform": sys.platform, ++ "zip_name": "linux", ++ } ++] ++ + if len(sys.argv) == 2 and sys.argv[1] == "--list-wheels": + for bundle in base_wheel_bundles: + print(bundle["wheel"]) +@@ -108,7 +118,7 @@ def download_driver(zip_name: str) -> None: + or "-beta" in driver_version + or "-next" in driver_version + ): +- url = url + "next/" ++ pass # do not alter the URL + url = url + zip_file + temp_destination_path = destination_path + ".tmp" + print(f"Fetching {url}") -- cgit v1.2.3