Merge pull request #8146 from Rylan12/update-python-resources-fix

update-python-resources: add --no-cache-dir flag
This commit is contained in:
Rylan Polster 2020-07-31 12:18:00 -04:00 committed by GitHub
commit 53a27185a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,11 +67,13 @@ module PyPI
end
ohai "Retrieving PyPI dependencies for \"#{pypi_name}==#{version}\"" if !print_only && !silent
pipgrip_output = Utils.popen_read Formula["pipgrip"].bin/"pipgrip", "--json", "#{pypi_name}==#{version}"
pipgrip_output = Utils.popen_read Formula["pipgrip"].bin/"pipgrip", "--json", "--no-cache-dir",
"#{pypi_name}==#{version}"
unless $CHILD_STATUS.success?
odie <<~EOS
Unable to determine dependencies for \"#{pypi_name}\" because of a failure when running
`pipgrip --json #{pypi_name}==#{version}`. Please update the resources for \"#{formula.name}\" manually.
`pipgrip --json --no-cache-dir #{pypi_name}==#{version}`.
Please update the resources for \"#{formula.name}\" manually.
EOS
end