Skip to content

Commit 028c9ed

Browse files
committed
Merge pull request #3903 from ejnens/master
BLD: add setup_requires in setup.py so numpy can be used with buildout
2 parents 57f103a + c69e3aa commit 028c9ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
_have_setuptools = False
3535

3636
setuptools_kwargs = {}
37+
min_numpy_ver = '1.6'
3738
if sys.version_info[0] >= 3:
3839

39-
min_numpy_ver = 1.6
4040
if sys.version_info[1] >= 3: # 3.3 needs numpy 1.7+
4141
min_numpy_ver = "1.7.0b2"
4242

@@ -45,6 +45,7 @@
4545
'install_requires': ['python-dateutil >= 2',
4646
'pytz',
4747
'numpy >= %s' % min_numpy_ver],
48+
'setup_requires': ['numpy >= %s' % min_numpy_ver],
4849
'use_2to3_exclude_fixers': ['lib2to3.fixes.fix_next',
4950
],
5051
}
@@ -53,10 +54,12 @@
5354
"\n$ pip install distribute")
5455

5556
else:
57+
min_numpy_ver = '1.6.1'
5658
setuptools_kwargs = {
5759
'install_requires': ['python-dateutil',
5860
'pytz',
59-
'numpy >= 1.6.1'],
61+
'numpy >= %s' % min_numpy_ver],
62+
'setup_requires': ['numpy >= %s' % min_numpy_ver],
6063
'zip_safe': False,
6164
}
6265

0 commit comments

Comments
 (0)