1diff --git a/playwright/_impl/_driver.py b/playwright/_impl/_driver.py
2index f3b911f..d00e509 100644
3--- a/playwright/_impl/_driver.py
4+++ b/playwright/_impl/_driver.py
5@@ -23,11 +23,7 @@ from playwright._repo_version import version
6
7
8 def compute_driver_executable() -> Path:
9- package_path = Path(inspect.getfile(playwright)).parent
10- platform = sys.platform
11- if platform == "win32":
12- return package_path / "driver" / "playwright.cmd"
13- return package_path / "driver" / "playwright.sh"
14+ return Path("@driver@")
15
16
17 if sys.version_info.major == 3 and sys.version_info.minor == 7:
18diff --git a/setup.py b/setup.py
19index 3487a6a..05112c2 100644
20--- a/setup.py
21+++ b/setup.py
22@@ -141,25 +141,8 @@ class PlaywrightBDistWheelCommand(BDistWheelCommand):
23 base_wheel_location: str = glob.glob(os.path.join(self.dist_dir, "*.whl"))[0]
24 without_platform = base_wheel_location[:-7]
25 for wheel_bundle in wheels:
26- download_driver(wheel_bundle["zip_name"])
27- zip_file = (
28- f"driver/playwright-{driver_version}-{wheel_bundle['zip_name']}.zip"
29- )
30- with zipfile.ZipFile(zip_file, "r") as zip:
31- extractall(zip, f"driver/{wheel_bundle['zip_name']}")
32 wheel_location = without_platform + wheel_bundle["wheel"]
33 shutil.copy(base_wheel_location, wheel_location)
34- with zipfile.ZipFile(wheel_location, "a") as zip:
35- driver_root = os.path.abspath(f"driver/{wheel_bundle['zip_name']}")
36- for dir_path, _, files in os.walk(driver_root):
37- for file in files:
38- from_path = os.path.join(dir_path, file)
39- to_path = os.path.relpath(from_path, driver_root)
40- zip.write(from_path, f"playwright/driver/{to_path}")
41- zip.writestr(
42- "playwright/driver/README.md",
43- f"{wheel_bundle['wheel']} driver package",
44- )
45 os.remove(base_wheel_location)
46 if InWheel:
47 for whlfile in glob.glob(os.path.join(self.dist_dir, "*.whl")):