update-python-resources: add --no-cache-dir flag

This commit is contained in:
Rylan Polster 2020-07-30 14:26:27 -04:00
parent c115d59b26
commit 03cf0e0180

View File

@ -53,11 +53,13 @@ module PyPI
end end
ohai "Retrieving PyPI dependencies for \"#{pypi_name}==#{version}\"" if !print_only && !silent 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? unless $CHILD_STATUS.success?
odie <<~EOS odie <<~EOS
Unable to determine dependencies for \"#{pypi_name}\" because of a failure when running 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 EOS
end end