Skip to content

Commit 3060c24

Browse files
committed
Include mock as test dependency
This is only needed for python 2 because mock is in stdlib for python 3 (unittest.mock).
1 parent c1c6a85 commit 3060c24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
from setuptools import setup
3+
import sys
34

45

56
DISTNAME = 'pymc'
@@ -27,7 +28,10 @@
2728

2829
install_reqs = ['numpy>=1.7.1', 'scipy>=0.12.0', 'matplotlib>=1.2.1',
2930
'Theano==0.6.0']
31+
3032
test_reqs = ['nose']
33+
if sys.version_info[0] == 2: # py3 has mock in stdlib
34+
test_reqs.append('mock')
3135

3236
if __name__ == "__main__":
3337
setup(name=DISTNAME,

0 commit comments

Comments
 (0)