Skip to content

fix: pip spoke whl repository platform

Sebastian Birunt requested to merge fix_pip_spoke_whl_repo_platform into main

Having:

pip.parse(
    hub_name = "pre-commit-hook-{}".format(version),
    python_version = version,
    requirements_lock = "//pre-commit/hook/requirements:lock.txt",
),

and using requirements_lock attribute will create pip spoke whl repositories just for the host platform.

This can have potential issues when the repository is platform dependent and the host platform is different of execution platform (common case for RBE build).

The change sets pip requirements for different platforms separately.

Specifying platforms as:

  • "linux_*"
  • "osx_*"
  • "windows_*"

allows the pip to create repositories for different platforms and picks up correct one for the execution platform.

Fixes #6 (closed) & Closes #6 (closed)

Edited by Sebastian Birunt

Merge request reports

Loading