File tree 3 files changed +13
-15
lines changed
3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 6
6
number : {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
7
7
8
8
source :
9
- path : ../../
9
+ path : ../
10
10
11
11
requirements :
12
12
build :
13
13
- python
14
14
- cython
15
15
- numpy x.x
16
- - libpython # [py2k and win]
17
16
- setuptools
18
17
- pytz
19
18
- python-dateutil
Original file line number Diff line number Diff line change 4
4
5
5
__docformat__ = 'restructuredtext'
6
6
7
- # use the closest tagged version if possible
8
- from ._version import get_versions
9
- v = get_versions ()
10
- __version__ = v .get ('closest-tag' ,v ['version' ])
11
- del get_versions , v
12
-
13
7
# numpy compat
8
+ import numpy as np
14
9
from pandas .compat .numpy_compat import *
15
10
16
11
try :
23
18
"extensions first." .format (module ))
24
19
25
20
from datetime import datetime
26
- import numpy as np
27
-
28
21
from pandas .info import __doc__
29
22
30
23
# let init-time option registration happen
50
43
from pandas .util .nosetester import NoseTester
51
44
test = NoseTester ().test
52
45
del NoseTester
46
+
47
+ # use the closest tagged version if possible
48
+ from ._version import get_versions
49
+ v = get_versions ()
50
+ __version__ = v .get ('closest-tag' ,v ['version' ])
51
+ del get_versions , v
52
+
Original file line number Diff line number Diff line change 1
1
""" support numpy compatiblitiy across versions """
2
2
3
+ import numpy as np
3
4
from distutils .version import LooseVersion
4
5
from pandas .compat import string_types , string_and_binary_types
5
- import numpy as np
6
6
7
7
# TODO: HACK for NumPy 1.5.1 to suppress warnings
8
8
# is this necessary?
19
19
_np_version_under1p11 = LooseVersion (_np_version ) < '1.11'
20
20
21
21
if LooseVersion (_np_version ) < '1.7.0' :
22
- from pandas import __version__
23
- raise ImportError ('pandas {0} is incompatible with numpy < 1.7.0\n '
24
- 'your numpy version is {1}.\n '
22
+ raise ImportError ('this version of pandas is incompatible with numpy < 1.7.0\n '
23
+ 'your numpy version is {0}.\n '
25
24
'Please upgrade numpy to >= 1.7.0 to use '
26
- 'this pandas version' .format (__version__ , _np_version ))
25
+ 'this pandas version' .format (_np_version ))
27
26
28
27
29
28
def tz_replacer (s ):
You can’t perform that action at this time.
0 commit comments