Skip to content

Commit

Permalink
Fix fpm to work with recent versions of pip
Browse files Browse the repository at this point in the history
`--no-install` option has been removed from recent versions of pip.  Instead `pip download` should be used.
  • Loading branch information
liger1978 committed May 11, 2016
1 parent 15497b2 commit 77e0cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fpm/package/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def download_if_necessary(package, version=nil)
"--build-directory", target, want_pkg)
else
logger.debug("using pip", :pip => attributes[:python_pip])
safesystem(attributes[:python_pip], "install", "--no-deps", "--no-install", "--no-use-wheel", "-i", attributes[:python_pypi], "-U", "--build", target, want_pkg)
safesystem(attributes[:python_pip], "download", "--no-clean", "--no-deps", "--no-binary", ":all:", "-i", attributes[:python_pypi], "--build", target, want_pkg)
end

# easy_install will put stuff in @tmpdir/packagename/, so find that:
Expand Down

0 comments on commit 77e0cf7

Please sign in to comment.