Skip to content

wheels#991

Closed
pavelfeldman wants to merge 1 commit intomicrosoft:masterfrom
pavelfeldman:demoo
Closed

wheels#991
pavelfeldman wants to merge 1 commit intomicrosoft:masterfrom
pavelfeldman:demoo

Conversation

@pavelfeldman
Copy link
Copy Markdown
Member

No description provided.

"darwin": "mac",
"linux": "linux",
"win32": "win32_x64" if sys.maxsize > 2 ** 32 else "win32",
"win32": "win32",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this ends up using the wrong 32 bit variant of Node.js which is 404 when we roll. See here: https://github.com/microsoft/playwright/blob/82dd7c87ad44cd2c71358c455ba8ee7532b7ab72/utils/build/build-playwright-driver.sh#L75

if self.all:
wheels = wheel_to_driver_map.keys()
else:
wheels = []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems by default not creating any wheels, we need to create the sys.platform wheels by default. For local installation and conda builds.

shutil.copyfile(wheel_location, universal_location)
with zipfile.ZipFile(universal_location, "a") as zip:
if wheel == "macosx_11_0_universal2.whl":
# Make sure Mac wheels differ.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why make sure the wheels differ?

zip_file = f"driver/playwright-{driver_version}-{driver}.zip"
with zipfile.ZipFile(zip_file, "r") as zip:
extractall(zip, f"driver/{platform}")
if platform_map[sys.platform] == platform:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dropping this would also break the local installations I think.

@kumaraditya303
Copy link
Copy Markdown
Contributor

See #993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants