Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

brew install mercurial #3825

Closed
chilloutman opened this issue Jan 6, 2011 · 6 comments
Closed

brew install mercurial #3825

chilloutman opened this issue Jan 6, 2011 · 6 comments

Comments

@chilloutman
Copy link

Installing mercurial using homebrew does not work. I think it should. A google search shows that other people also have this issue.

I ended up using easy_install, but i'd much rather use homebrew.

Bash:

    $ brew install mercurial
    Mercurial can be install thusly:
    brew install pip && pip install mercurial

    $ brew install pip && pip install mercurial
    ==> Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
    File already downloaded and cached to /Users/ln/Library/Caches/Homebrew
    Error: The Distribute brew is only meant to be used against a Homebrew-built Python.
            Homebrew's "distribute" formula is only meant to be installed against a Homebrew-
            built version of Python, but we couldn't find such a version.

            The system-provided Python comes with "easy_install" already installed, with the
            caveat that some Python packages don't install cleanly against Apple's customized
            versions of Python.

            To install distribute against a custom Python, download distribute from:
              http://pypi.python.org/pypi/distribute
            unzip, and run:
              /path/to/custom/python setup.py install
@MikeMcQuaid
Copy link
Member

Mercurial is part of PyPI and we don't duplicate it's packages, sorry.

@adamv
Copy link
Contributor

adamv commented Jan 6, 2011

"brew install https://github.com/adamv/homebrew/raw/duplicates/Library/Formula/mercurial.rb" from the duplicates branch, but it is unsupported.

@drakeguan
Copy link
Contributor

What if we are creating a formula which depends on mercurial while in building step? How can we check if mercurial is installed in the formula?

@jacknagel
Copy link
Contributor

unless system "/usr/bin/which -s hg"
  raise "You need to install mercurial bla bla bla"
end

or something along those lines.

@DanLipsitt
Copy link
Contributor

Mercurial is available in homebrew and bottled now:

$ brew info mercurial
mercurial: stable 3.2.3 (bottled)
http://mercurial.selenic.com/
/usr/local/Cellar/mercurial/3.1.2 (428 files, 6.2M)
  Poured from bottle
/usr/local/Cellar/mercurial/3.2.3 (424 files, 6.3M) *
  Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/mercurial.rb

Has the policy changed? I have a build dep on mercurial (go get needs it) and brew audit complains.

@Homebrew Homebrew locked and limited conversation to collaborators Jan 8, 2015
@MikeMcQuaid
Copy link
Member

Use :hg

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants