Deprecated pip option --install-options
This issue starts to pop up very recently on PyTorch CI when trying to use multipy in testing:
+ pip install -e . --install-option=--cudatests
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
For example, https://github.com/pytorch/pytorch/actions/runs/5275114822/jobs/9540566837. After digging around a bit, it turns out that --install-option has been deprecated since pip 23.1 (2023-04-15) https://pip.pypa.io/en/stable/news/ (track in https://github.com/pypa/pip/issues/11358). So that above command won't work for newer pip version anymore.
The recommended alternative from pypi is mentioned in https://github.com/pypa/pip/pull/11560:
This option is deprecated. Using this option with location-changing options may cause unexpected behavior. Use pip-level options like --user, --prefix, --root, and --target
Which is likely caused by https://hud.pytorch.org/pytorch/pytorch/commit/5efdcd5802ec58c70e66e509cab43887e1253221 that updated our pip version inadvertently
Fixed by https://github.com/pytorch/multipy/pull/323