Skip to content

Commit

Permalink
python.rb: better error if easy_install isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Carrier committed Jul 8, 2011
1 parent 23b21a6 commit 606e872
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 606e872

Please sign in to comment.