From d43a0177365b339ac4829648583ff21600521003 Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Tue, 9 Nov 2021 21:26:04 -0800 Subject: [PATCH] Have pip download packages to the build_path Prior to this change, pip would download Python packages to $PWD which leaves files hanging around. The build_path is automatically removed when fpm exits. --- lib/fpm/package/python.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fpm/package/python.rb b/lib/fpm/package/python.rb index 57af4dc288..22a3dfcfff 100644 --- a/lib/fpm/package/python.rb +++ b/lib/fpm/package/python.rb @@ -150,8 +150,8 @@ def download_if_necessary(package, version=nil) "download", "--no-clean", "--no-deps", - "--no-binary", - ":all:", + "--no-binary", ":all:", + "-d", build_path, "-i", attributes[:python_pypi], ]