Commit 70b0594f authored by Jason R. Coombs's avatar Jason R. Coombs

Only require rst.linker when docs commands are invoked. Also specify sphinx dependency.

parent 02fac66f
......@@ -76,6 +76,8 @@ if sys.platform == 'win32' or force_windows_specific_files:
package_data.setdefault('setuptools.command', []).extend(['*.xml'])
pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else []
needs_sphinx = set(['build_sphinx', 'upload_docs']).intersection(sys.argv)
sphinx = ['sphinx', 'rst.linker'] if needs_sphinx else []
setup_params = dict(
name="setuptools",
......@@ -172,8 +174,7 @@ setup_params = dict(
'pytest',
] + (['mock'] if sys.version_info[:2] < (3, 3) else []),
setup_requires=[
'rst.linker',
] + pytest_runner,
] + sphinx + pytest_runner,
)
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment