pytorch/multipy

Deprecated pip option --install-options

huydhn opened this issue · 2 comments

huydhn commented

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 pypa/pip#11358). So that above command won't work for newer pip version anymore.

The recommended alternative from pypi is mentioned in pypa/pip#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
malfet commented

Which is likely caused by https://hud.pytorch.org/pytorch/pytorch/commit/5efdcd5802ec58c70e66e509cab43887e1253221 that updated our pip version inadvertently

PaliC commented

Fixed by #323