Open eliasp opened 2 years ago
this looks to have been broken for a long time. --download
hasn't been supported since pip 8. and looking at the newer usage this is most likely going to become more of a feature request to add pip.download and pip.downloaded to follow the proper way it should be used with pip.
This is kind of an old bug and feature request all in one.
A bug doesn't become a feature request just because it's ignored for long enough.
If the intent is to not have the feature for now, then it at least needs to be properly removed.
Description When trying to only download a pip pkg using
pip.install
anddownload=True
,pip.install
will executepip install --download ...
instead ofpip download ...
Furthermore, it won't even try to download it, when the pkg is already installed.Setup
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
salt-call --local state.single pip.installed name=standalone download=true
Result:no such option: --download [ERROR ] retcode: 2 [ERROR ] Failed to install packages: standalone. Error: Usage: /usr/bin/python3 -m pip install [options] [package-index-options] ...
/usr/bin/python3 -m pip install [options] -r [package-index-options] ...
/usr/bin/python3 -m pip install [options] [-e] ...
/usr/bin/python3 -m pip install [options] [-e] ...
/usr/bin/python3 -m pip install [options] <archive url/path> ...
no such option: --download local:
Summary for local
Succeeded: 0 Failed: 1
Total states run: 1 Total run time: 1.325 s
Additional context Add any other context about the problem here.