Skip to content

Commit e36f8be

Browse files
committed
kludge to move tslibs/parsing to make asv work
1 parent b3ca3c0 commit e36f8be

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pandas/_libs/period.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ from tslib cimport (
4040
_get_dst_info,
4141
_nat_scalar_rules)
4242

43-
from tslibs.parsing import parse_time_string, NAT_SENTINEL
43+
from .parsing import parse_time_string, NAT_SENTINEL
4444

4545
from pandas.tseries import offsets
4646
from pandas.tseries import frequencies

pandas/_libs/src/inference.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ iNaT = util.get_nat()
88

99
cdef bint PY2 = sys.version_info[0] == 2
1010

11-
from pandas._libs.tslibs.parsing import (
11+
from pandas._libs.parsing import (
1212
try_parse_dates,
1313
try_parse_date_and_time,
1414
try_parse_year_month_day,

pandas/_libs/tslib.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ from khash cimport (
6666
kh_init_int64, kh_int64_t,
6767
kh_resize_int64, kh_get_int64)
6868

69-
from tslibs import parsing # noqa
70-
from tslibs.parsing import ( # noqa
69+
from . import parsing # noqa
70+
from .parsing import ( # noqa
7171
DateParseError,
7272
_format_is_iso,
7373
_DATEUTIL_LEXER_SPLIT,

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class CheckSDist(sdist_class):
331331
_pyxfiles = ['pandas/_libs/lib.pyx',
332332
'pandas/_libs/hashtable.pyx',
333333
'pandas/_libs/tslib.pyx',
334-
'pandas/_libs/tslibs/parsing.pyx',
334+
'pandas/_libs/parsing.pyx',
335335
'pandas/_libs/period.pyx',
336336
'pandas/_libs/index.pyx',
337337
'pandas/_libs/algos.pyx',
@@ -482,7 +482,7 @@ def pxd(name):
482482
'pxdfiles': ['_libs/hashtable'],
483483
'depends': (['pandas/_libs/src/klib/khash_python.h']
484484
+ _pxi_dep['hashtable'])},
485-
'_libs.tslibs.parsing': {'pyxfile': '_libs/tslibs/parsing'},
485+
'_libs.parsing': {'pyxfile': '_libs/parsing'},
486486
'_libs.tslib': {'pyxfile': '_libs/tslib',
487487
'pxdfiles': ['_libs/src/util', '_libs/lib'],
488488
'depends': tseries_depends,

0 commit comments

Comments
 (0)