Skip to content

Commit

Permalink
Have pip download packages to the build_path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jordansissel committed Nov 10, 2021
1 parent c1930fc commit d43a017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fpm/package/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]

Expand Down

0 comments on commit d43a017

Please sign in to comment.