File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 15
15
'install version 1.5!' )
16
16
except ImportError : # pragma: no cover
17
17
print 'Please install python-dateutil via easy_install or some method!'
18
+ raise # otherwise a 2nd import won't show the message
18
19
19
20
import calendar
20
21
Original file line number Diff line number Diff line change
1
+ # so python-dateutil2 is for py3!
2
+ python-dateutil < 2
3
+ numpy
4
+
Original file line number Diff line number Diff line change 24
24
except ImportError :
25
25
raise ImportError ('require setuptools/distribute for Py3k' )
26
26
setuptools_args = {'use_2to3' : True ,
27
- 'zip_safe' : False ,}
27
+ 'zip_safe' : False ,
28
+ 'install_requires' : ['python-dateutil > 2' ,'numpy' ],
29
+ }
28
30
else :
29
- setuptools_args = {}
30
-
31
+ setuptools_args = {
32
+ 'install_requires' : ['python-dateutil < 2' ,'numpy' ],
33
+ }
31
34
32
35
import numpy as np
33
36
You can’t perform that action at this time.
0 commit comments