diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-02-25 08:52:48 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-02-25 08:52:48 -0500 |
| commit | ddd14a2b2d993a66224b7021d424842daca77439 (patch) | |
| tree | a829de9a43eed98e75b55a19dff1373bd5a9334e /setup.py | |
| parent | 8f40dd13a2594142b5d30d8dc3bc6d9fb7e1a799 (diff) | |
| download | python-setuptools-bitbucket-ddd14a2b2d993a66224b7021d424842daca77439.tar.gz | |
Update conditional setup-time dependency to also support pytest and test commands.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -75,7 +75,8 @@ if sys.platform == 'win32' or force_windows_specific_files: package_data.setdefault('setuptools', []).extend(['*.exe']) package_data.setdefault('setuptools.command', []).extend(['*.xml']) -pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else [] +needs_pytest = set(['ptr', 'pytest', 'test']) in sys.argv else [] +pytest_runner = ['pytest-runner'] if needs_pytest else [] needs_sphinx = set(['build_sphinx', 'upload_docs']).intersection(sys.argv) sphinx = ['sphinx', 'rst.linker'] if needs_sphinx else [] |
