Skip to content

Commit b7b1aa9

Browse files
committed
BUG: pytest-runner no required for setup.py (#2643)
1 parent d1d2ece commit b7b1aa9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
]
2626

2727
INSTALL_REQUIRES = ['numpy >= 1.12', 'pandas >= 0.19.2']
28-
SETUP_REQUIRES = ['pytest-runner >= 4.2']
28+
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
29+
SETUP_REQUIRES = ['pytest-runner >= 4.2'] if needs_pytest else []
2930
TESTS_REQUIRE = ['pytest >= 2.7.1']
3031
if sys.version_info[0] < 3:
3132
TESTS_REQUIRE.append('mock')

0 commit comments

Comments
 (0)