test: disable `pytest` tests on Windows
When `rules_python` performs a hermetic bootstrap, it creates a symlink from the unzipped Python runfiles into the location of the Python interpreter[1]. However, on Windows, symlinks are only allowed if the user is in developer mode _or_ has a security allowance for creating symlinks. The fallback would be to create a hardlink. Neither of these solutions work because when the symlink/hardlink is executed Windows cannot find the required DLLs to launch Python. I attempted a hack where we hardlink in the DDLs and/or create junctions for the directories. Nothing works well as eventually the runfiles for the target are not found. This may be a missing piece of coverage on the upstream ruleset. There is an effort to look into a native launcher[2] that may or may not fix things up. For now, mark the `pytest` Python library incompatible with Windows. Tracking the tech-debt in #8 [1]: https://github.com/bazelbuild/rules_python/blob/1.1.0/python/private/zip_main_template.py#L289 [2]: https://github.com/bazelbuild/rules_python/issues/2500
Loading