summaryrefslogtreecommitdiff
path: root/www/py-playwright/files/patch-setup.py
blob: 1b783186954859d77155f92ce623f968f583611e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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}")