Skip to content

Commit

Permalink
Merge pull request #72 from pcarrier/master
Browse files Browse the repository at this point in the history
fpm fails weirdly if python-setuptools isn't installed under Debian
  • Loading branch information
jordansissel committed Jul 12, 2011
2 parents b3db5f7 + 606e872 commit a593df4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/fpm/source/python.rb
Expand Up @@ -47,7 +47,11 @@ def download(package, version=nil)
want_pkg = "#{package}==#{version}"
end

system(self[:settings][:easy_install], "--editable", "--build-directory", @tmpdir, want_pkg)
return_value = system(self[:settings][:easy_install], "--editable", "--build-directory", @tmpdir, want_pkg)

if return_value.nil?
raise "The execution of #{self[:settings][:easy_install]} failed"
end

# easy_install will put stuff in @tmpdir/packagename/, flatten that.
# That is, we want @tmpdir/setup.py, and start with
Expand Down

0 comments on commit a593df4

Please sign in to comment.