diff options
Diffstat (limited to 'www/py-playwright/files/patch-setup.py')
-rw-r--r-- | www/py-playwright/files/patch-setup.py | 28 |
1 files changed, 28 insertions, 0 deletions
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}") |