MCPcopy Index your code
hub / github.com/microsoft/playwright-python / run

Method run

setup.py:123–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121
122class PlaywrightBDistWheelCommand(BDistWheelCommand):
123 def run(self) -> None:
124 super().run()
125 os.makedirs("driver", exist_ok=True)
126 os.makedirs("playwright/driver", exist_ok=True)
127 self._download_and_extract_local_driver()
128
129 wheel = None
130 if os.getenv("PLAYWRIGHT_TARGET_WHEEL", None):
131 wheel = list(
132 filter(
133 lambda wheel: wheel["wheel"]
134 == os.getenv("PLAYWRIGHT_TARGET_WHEEL"),
135 base_wheel_bundles,
136 )
137 )[0]
138 else:
139 wheel = list(
140 filter(
141 lambda wheel: wheel["platform"] == sys.platform
142 and wheel["machine"] == platform.machine().lower(),
143 base_wheel_bundles,
144 )
145 )[0]
146 assert wheel
147 self._build_wheel(wheel)
148
149 def _build_wheel(
150 self,

Callers 1

example_async.pyFile · 0.45

Calls 2

_build_wheelMethod · 0.95

Tested by

no test coverage detected