`pip install requests` insists to download Sphinx, Jinja2, ...

I've just created an empty virtualenv and installed requests 1.2.1.
I'm surprised it downloads Sphinx ...

```
$ pip install requests

Downloading/unpacking requests
  Downloading requests-1.2.1.tar.gz (348kB): 348kB downloaded
  Running setup.py egg_info for package requests

    Installed /home/user/.virtualenvs/trequests/build/requests/Sphinx-1.2b1-py2.7.egg
    Searching for docutils>=0.7
    Reading http://pypi.python.org/simple/docutils/
    Reading http://docutils.sourceforge.net/
    Reading http://sourceforge.net/projects/docutils/files/docutils/0.8.1/docutils-0.8.1.tar.gz/download
    Reading http://sourceforge.net/projects/docutils/files/docutils/0.9.1/docutils-0.9.1.tar.gz/download
    Reading http://sourceforge.net/projects/docutils/files/docutils/0.10/docutils-0.10.tar.gz/download
    Reading http://sourceforge.net/projects/docutils/files/docutils/0.9/docutils-0.9.tar.gz/download
    Best match: docutils 0.10
    Downloading http://pypi.python.org/packages/source/d/docutils/docutils-0.10.tar.gz#md5=d8d4660c08302c791b2d71a155a2f4bc
    Processing docutils-0.10.tar.gz
    Writing /var/folders/-+/-+ZKNykxGl44h0qzWweTRE+++TI/-Tmp-/easy_install-5j0vnc/docutils-0.10/setup.cfg
    Running docutils-0.10/setup.py -q bdist_egg --dist-dir /var/folders/-+/-+ZKNykxGl44h0qzWweTRE+++TI/-Tmp-/easy_install-5j0vnc/docutils-0.10/egg-dist-tmp-rQhjkj
    warning: no files found matching 'MANIFEST'
    warning: no files found matching '*' under directory 'extras'
    warning: no previously-included files matching '.cvsignore' found under directory '*'
    warning: no previously-included files matching '*.pyc' found under directory '*'
    warning: no previously-included files matching '*~' found under directory '*'
    warning: no previously-included files matching '.DS_Store' found under directory '*'
    zip_safe flag not set; analyzing archive contents...
    docutils.parsers.rst.directives.misc: module references __file__
    docutils.writers.docutils_xml: module references __path__
    docutils.writers.html4css1.__init__: module references __file__
    docutils.writers.latex2e.__init__: module references __file__
    docutils.writers.odf_odt.__init__: module references __file__
    docutils.writers.pep_html.__init__: module references __file__
    docutils.writers.s5_html.__init__: module references __file__

    Installed /home/user/.virtualenvs/trequests/build/requests/docutils-0.10-py2.7.egg
    Searching for Jinja2>=2.3
    Reading http://pypi.python.org/simple/Jinja2/
    Best match: Jinja2 2.7
    Downloading http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.tar.gz#md5=c2fb12cbbb523c57d3d15bfe4dc0e8fe
    Processing Jinja2-2.7.tar.gz
    Writing /var/folders/-+/-+ZKNykxGl44h0qzWweTRE+++TI/-Tmp-/easy_install-jPS1EB/Jinja2-2.7/setup.cfg
    Running Jinja2-2.7/setup.py -q bdist_egg --dist-dir /var/folders/-+/-+ZKNykxGl44h0qzWweTRE+++TI/-Tmp-/easy_install-jPS1EB/Jinja2-2.7/egg-dist-tmp-cPLRtT
    warning: no files found matching '*' under directory 'custom_fixers'
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'

    Installed /home/user/.virtualenvs/trequests/build/requests/Jinja2-2.7-py2.7.egg
    Searching for Pygments>=1.2
    Reading http://pypi.python.org/simple/Pygments/
    Best match: Pygments 1.6
    Downloading http://pypi.python.org/packages/2.7/P/Pygments/Pygments-1.6-py2.7.egg#md5=1e1e52b1e434502682aab08938163034
    Processing Pygments-1.6-py2.7.egg
    Extracting Pygments-1.6-py2.7.egg to /home/user/.virtualenvs/trequests/build/requests

    Installed /home/user/.virtualenvs/trequests/build/requests/Pygments-1.6-py2.7.egg
    Searching for markupsafe
    Reading http://pypi.python.org/simple/markupsafe/
    Best match: MarkupSafe 0.16
    Downloading http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-0.16.tar.gz#md5=fe88012f7fe75252efd26cd25a100851
    Processing MarkupSafe-0.16.tar.gz
    Writing /var/folders/-+/-+ZKNykxGl44h0qzWweTRE+++TI/-Tmp-/easy_install-YPMyiT/MarkupSafe-0.16/setup.cfg
    Running MarkupSafe-0.16/setup.py -q bdist_egg --dist-dir /var/folders/-+/-+ZKNykxGl44h0qzWweTRE+++TI/-Tmp-/easy_install-YPMyiT/MarkupSafe-0.16/egg-dist-tmp-taMAUR

    Installed /home/user/.virtualenvs/trequests/build/requests/MarkupSafe-0.16-py2.7-macosx-10.6-x86_64.egg

Installing collected packages: requests
  Running setup.py install for requests

Successfully installed requests
Cleaning up...
$ 
```


Sphinx was added to `setup_requires` by #1302. This seemed reasonable to me at the time, because I naively assumed it would only download Sphix for building the documentation. It does not. 

I think we should remove Sphinx from `setup_requires`: if someone really needs to build the documentation they can download it themselves.


It was a big surprise to me that suddenly requests-1.2.1 pulls in four more packages (or so).  I think a quick requests-1.2.2 which just fixes this packaging bug would be warranted before too many people experience the issue.  Thanks!


Curious, what version of pip are you guys using? Doesn't happen on latest.

Could be a setuptools vs distribute thing.


pip-1.3.1, tried with both distribute and setuptools.  Even if it doesn't happen in some configurations, it's bad enough to avoid the issue altogether.  FWIW, i am building docs with a tox environment similar to this: http://testrun.org/tox/latest//example/general.html?highlight=sphinx#integrating-sphinx-documentation-checks . It's one way to  keep things out of setup.py. 


Of course it's worth fixing, i'm still curious as to why it's not happening on my machine :)

Keeping things out of setup.py is not an issue, but thanks for the input.


@kennethreitz are you using a clean virtual environment to test it? Using both old and new versions of virtualenv I found the same results: https://gist.github.com/sigmavirus24/5623374


I must just be lucky :)


It's fixed with 1.2.2. Thank you.