utils/pypi: use opt_bin for pipgrip

This commit is contained in:
Nanda H Krishna 2021-05-15 23:14:34 +05:30
parent d45832bbfc
commit 389f289770
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA

View File

@ -212,7 +212,7 @@ module PyPI
odie '"pipgrip" must be installed (`brew install pipgrip`)' unless @pipgrip_installed
ohai "Retrieving PyPI dependencies for \"#{input_packages.join(" ")}\"..." if !print_only && !silent
command = [Formula["pipgrip"].bin/"pipgrip", "--json", "--no-cache-dir", *input_packages.map(&:to_s)]
command = [Formula["pipgrip"].opt_bin/"pipgrip", "--json", "--no-cache-dir", *input_packages.map(&:to_s)]
pipgrip_output = Utils.popen_read(*command)
unless $CHILD_STATUS.success?
odie <<~EOS