Description: Clean setup.py
 Remove obsolete arguments from setup() and use plain distutils not
 setuptools.
Forwarded: https://github.com/numpy/numpy/pull/298
Applied-Upstream: https://github.com/numpy/numpy/commit/adddbc72a7aa9faeb61c708f1c2c0568d0398303
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,11 @@
 from distutils.core import setup
-import setuptools
-import sys, os
 
 version = "0.4"
 
 setup(
     name="numpydoc",
     packages=["numpydoc"],
-    package_dir={"numpydoc": ""},
+    package_dir={"numpydoc": "."},
     version=version,
     description="Sphinx extension to support docstrings in Numpy format",
     # classifiers from http://pypi.python.org/pypi?%3Aaction=list_classifiers
@@ -20,12 +18,6 @@
     author_email="pav@iki.fi",
     url="http://github.com/numpy/numpy/tree/master/doc/sphinxext",
     license="BSD",
-    zip_safe=False,
-    install_requires=["Sphinx >= 1.0.1"],
-    package_data={'numpydoc': 'tests', '': ''},
-    entry_points={
-        "console_scripts": [
-            "autosummary_generate = numpydoc.autosummary_generate:main",
-        ],
-    },
+    requires=["sphinx (>= 1.0.1)"],
+    package_data={'numpydoc': ['tests/test_*.py']},
 )
