diff --git a/setup.py b/setup.py index 90217152..5ee9cd74 100644 --- a/setup.py +++ b/setup.py @@ -8,9 +8,11 @@ 'msgpack>=0.5.0', ] +needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) +pytest_runner = ['pytest-runner'] if needs_pytest else [] + setup_requires = [ - 'pytest-runner' -] +] + pytest_runner, tests_require = [ 'pytest>=3.4.0',