title: trying to install mercurial via easy_install
body: <p>I am using Active Python 2.5.1, Mercurial 1.8.1 and TortoiseHg 1.1.0
  on Windows XP (all x86)
  I am trying to configure a mercurial repo in reviewboard. For that it
  requires mercurial python module
  So when i try to install mercurial via easy_install i get the
  following error</p>
  
  <pre><code>C:\&gt;easy_install mercurial==1.8.1
  Searching for mercurial==1.8.1
  Reading http://pypi.python.org/simple/mercurial/
  Reading http://mercurial.selenic.com/
  Reading http://www.selenic.com/mercurial
  Reading http://mercurial.selenic.com/release/
  Best match: mercurial 1.8.1
  Downloading http://mercurial.selenic.com/release/mercurial-1.8.1.tar.gz
  Processing mercurial-1.8.1.tar.gz
  Running mercurial-1.8.1\setup.py -q bdist_egg --dist-dir c:
  \docume~1\username\locals~1\temp\easy_install-7l0ykf
  \mercurial-1.8.1\egg-dist-tmp-egcnt6
  
  cc1.exe: error: unrecognized command line option '-mno-cygwin'
  error: Setup script exited with error: command 'gcc' failed with exit
  status 1
  </code></pre>
  
  <p>I have installed gcc through MinGW</p>
  
  <hr>
  
  <p>Thanks shu zOMG chen, 1.8.1 is a requirement so can't really change that.The second link did help, but now there's another problem. After removing -mno-cygwin occurences from distutils\cygwinccompiler.py I ran easy_install mercurial==1.8.1. The trace is as folows :</p>
  
  <pre><code>C:\&gt;easy_install mercurial==1.8.1
  Searching for mercurial==1.8.1
  Reading http://pypi.python.org/simple/mercurial/
  Reading http://mercurial.selenic.com/
  Reading http://www.selenic.com/mercurial
  Reading http://mercurial.selenic.com/release/
  Best match: mercurial 1.8.1
  Downloading http://mercurial.selenic.com/release/mercurial-1.8.1.tar.gz
  Processing mercurial-1.8.1.tar.gz
  Running mercurial-1.8.1\setup.py -q bdist_egg --dist-dir c:\docume~1\username\locals~1\temp\easy_install-05el_6\mercurial-1.8.1\egg-dist-tmp-zsfye0
  
  gcc: error: CreateProcess: No such file or directory
  error: Setup script exited with error: command 'gcc' failed with exit status 1
  
  C:\&gt;
  </code></pre>
  
  <p>Please Help
  Regards </p>