title: Python virtualenv pip install MySQL-Python causing "RuntimeError: maximum recursion depth exceeded"
body: <p>I setup a virtualenv and then tried to install <code>MySQL-Python</code> using pip (<code>after activating env</code>). My <code>requirements.txt</code> is as following:</p>
  
  <pre><code>MySQL-python==1.2.5
  argparse==1.2.1
  pymongo==2.6.3
  wsgiref==0.1.2
  </code></pre>
  
  <p>When I run <code>pip install -r requirement.txt</code>. I get some output last line of which is:</p>
  
  <pre><code>RuntimeError: maximum recursion depth exceeded
  </code></pre>
  
  <p>As mentioned in a post, I even ran this command to upgrade my distribute:</p>
  
  <pre><code>easy_install distribute==0.6.28
  </code></pre>
  
  <p>Even that didn't work. My python version (in env) is 2.7.6 and Machine is Ubuntu 14.04</p>
  
  <hr>
  
  <p><strong>UPDATE</strong>:   Stack trace is as following:</p>
  
  <pre><code>Downloading/unpacking MySQL-python==1.2.5 (from -r requirements.txt (line 1))
    Running setup.py (path:/root/frrole_backend_raw_dump/env/build/MySQL-python/setup.py) egg_info for package MySQL-python
      Traceback (most recent call last):
        File "&lt;string&gt;", line 17, in &lt;module&gt;
        File "/root/frrole_backend_raw_dump/env/build/MySQL-python/setup.py", line 21, in &lt;module&gt;
          setuptools.setup(**metadata)
        File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
          _setup_distribution = dist = klass(attrs)
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__
        File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
          self.finalize_options()
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require
          self.name = name
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve
          dist = best[req.key] = env.best_match(req, ws, installer)
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 825, in best_match
          ``installer(requirement)``, unless `installer` is None, in which case
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 837, in obtain
          def __iadd__(self, other):
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 272, in fetch_build_egg
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__
        File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
          self.finalize_options()
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require
          self.name = name
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve
          dist = best[req.key] = env.best_match(req, ws, installer)
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 825, in best_match
          ``installer(requirement)``, unless `installer` is None, in which case
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 837, in obtain
          def __iadd__(self, other):
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 272, in fetch_build_egg
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__
        File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
          self.finalize_options()
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require
          self.name = name
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve
          dist = best[req.key] = env.best_match(req, ws, installer)
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 825, in best_match
          ``installer(requirement)``, unless `installer` is None, in which case
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 837, in obtain
          def __iadd__(self, other):
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 272, in fetch_build_egg
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 225, in __init__
        File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
          self.finalize_options()
        File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 257, in finalize_options
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2029, in require
          self.name = name
        File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 580, in resolve
          dist = best[req.key] = env.best_match(req, ws, installer)
  </code></pre>