pass -U to easy_install to always fetch package

When calling easy_install with a build directory
on a machine/environment where the target package is
already available, include -U to force the package
to be redownloaded.

Otherwise, easy_install does nothing and fpm errors
out with:
Unexpected directory layout after easy_install
This commit is contained in:
Khalid Goudeaux 2011-09-26 12:11:29 -05:00
parent ce5c7d8ee0
commit e3f57454c4
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class FPM::Source::Python < FPM::Source
end
safesystem(self[:settings][:easy_install], "-i", self[:settings][:pypi],
"--editable", "--build-directory", @tmpdir, want_pkg)
"--editable", "-U", "--build-directory", @tmpdir, want_pkg)
# easy_install will put stuff in @tmpdir/packagename/, flatten that.
# That is, we want @tmpdir/setup.py, and start with