Skip to content

Commit ebb076e

Browse files
committed
DOC: explicit check for NumPy >= 1.6.1 in setup.py, close #1061
1 parent 69f7c16 commit ebb076e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
else:
5151
setuptools_kwargs = {
5252
'install_requires': ['python-dateutil < 2',
53-
'numpy >= 1.4'],
53+
'numpy >= 1.6'],
5454
'zip_safe' : False,
5555
}
5656
if not _have_setuptools:
@@ -70,6 +70,9 @@
7070
" $ pip install numpy # or easy_install numpy\n")
7171
sys.exit(nonumpy_msg)
7272

73+
if np.__version__ < '1.6.1':
74+
msg = "pandas requires NumPy >= 1.6 due to datetime64 dependency"
75+
sys.exit(msg)
7376

7477
from distutils.extension import Extension
7578
from distutils.command.build import build

0 commit comments

Comments
 (0)