From 77e0cf7a768bdd883409d58e0549691a7d1d762f Mon Sep 17 00:00:00 2001 From: liger1978 Date: Wed, 11 May 2016 15:17:55 +0100 Subject: [PATCH] Fix fpm to work with recent versions of pip `--no-install` option has been removed from recent versions of pip. Instead `pip download` should be used. --- lib/fpm/package/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fpm/package/python.rb b/lib/fpm/package/python.rb index 3a43770a3f..22701348af 100644 --- a/lib/fpm/package/python.rb +++ b/lib/fpm/package/python.rb @@ -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: