(self)
| 121 | |
| 122 | class 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, |
no test coverage detected