aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-playwright/files/patch-setup.py
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-10-05 09:19:31 +0100
committerLexi Winter <ivy@FreeBSD.org>2025-10-05 09:19:31 +0100
commitf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (patch)
treead799ccacfb459b809b02b9c115ed4befb93b4c1 /www/py-playwright/files/patch-setup.py
parent0b1510fe1f98f82da6f3481cb6c58957022d9211 (diff)
parentb057c68280a2f2a7b3d1fbac36f7b034e1fdf593 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/main
Diffstat (limited to 'www/py-playwright/files/patch-setup.py')
-rw-r--r--www/py-playwright/files/patch-setup.py28
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}")