Skip to content

Commit d6c053c

Browse files
committed
Revert "chore: produce different wheels for mac10/11"
This reverts commit 22f3036.
1 parent 22f3036 commit d6c053c

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

build_package.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,23 @@
7474
os.stat(f"playwright/driver/{file}").st_mode | stat.S_IEXEC,
7575
)
7676

77-
wheels = []
77+
wheel = ""
7878
if platform == "mac":
79-
wheels = ["macosx_10_13_x86_64.whl", "macosx_11_0_x86_64.whl"]
79+
wheel = "macosx_10_13_x86_64.whl"
8080
if platform == "linux":
81-
wheels = ["manylinux1_x86_64.whl"]
81+
wheel = "manylinux1_x86_64.whl"
8282
if platform == "win32":
83-
wheels = ["win32.whl"]
83+
wheel = "win32.whl"
8484
if platform == "win32_x64":
85-
wheels = ["win_amd64.whl"]
86-
for wheel in wheels:
87-
wheel_location = without_platform + wheel
88-
shutil.copy(base_wheel_location, wheel_location)
89-
with zipfile.ZipFile(wheel_location, "a") as zip:
90-
zip.writestr("playwright/driver/platform.txt", wheel)
91-
for file in os.listdir(f"driver/{platform}"):
92-
from_location = f"driver/{platform}/{file}"
93-
to_location = f"playwright/driver/{file}"
94-
if file == "playwright-cli" or file.startswith("ffmpeg"):
95-
os.chmod(
96-
from_location, os.stat(from_location).st_mode | stat.S_IEXEC
97-
)
98-
zip.write(from_location, to_location)
85+
wheel = "win_amd64.whl"
86+
wheel_location = without_platform + wheel
87+
shutil.copy(base_wheel_location, wheel_location)
88+
with zipfile.ZipFile(wheel_location, "a") as zip:
89+
for file in os.listdir(f"driver/{platform}"):
90+
from_location = f"driver/{platform}/{file}"
91+
to_location = f"playwright/driver/{file}"
92+
if file == "playwright-cli" or file.startswith("ffmpeg"):
93+
os.chmod(from_location, os.stat(from_location).st_mode | stat.S_IEXEC)
94+
zip.write(from_location, to_location)
9995

10096
os.remove(base_wheel_location)

0 commit comments

Comments
 (0)