Commit e5032bff authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #870 from uberhacker/fix-mercurial-package

Remove sudo from pip commands
parents d430afb1 76005819
......@@ -9,6 +9,7 @@ class Mercurial < Package
# what's the best route for adding a minimum version symbol as a constraint?
depends_on "python27"
depends_on "zlibpkg"
def self.build
# would be great to avoid even downloading the source tarball if this dependency wasn't met
......@@ -16,7 +17,7 @@ class Mercurial < Package
abort '[!] python 2.7.13 or higher is required for tig, please run `crew upgrade python27` first.' unless py_ver > '2.7.12'
if !%x[pip list | grep docutils].include? "docutils"
puts "Installing docutils dependency..."
system "sudo", "pip", "install", "docutils"
system "pip", "install", "docutils"
end
system "make", "PREFIX=/usr/local", "all"
end
......@@ -26,7 +27,7 @@ class Mercurial < Package
puts "------------------"
puts "Installation success!"
puts "Cleaning up dependencies only required for build..."
system "sudo", "pip", "uninstall", "docutils"
system "pip", "uninstall", "docutils"
puts
puts "To begin using mercurial you'll need to configure it."
puts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment