You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.4 KiB
37 lines
1.4 KiB
1 year ago
|
tslibs_sources = {
|
||
|
# Dict of extension name -> dict of {sources, include_dirs, and deps}
|
||
|
# numpy include dir is implicitly included
|
||
|
'base': {'sources': ['base.pyx']},
|
||
|
'ccalendar': {'sources': ['ccalendar.pyx']},
|
||
|
'dtypes': {'sources': ['dtypes.pyx']},
|
||
|
'conversion': {'sources': ['conversion.pyx']},
|
||
|
'fields': {'sources': ['fields.pyx']},
|
||
|
'nattype': {'sources': ['nattype.pyx']},
|
||
|
'np_datetime': {'sources': ['np_datetime.pyx']},
|
||
|
'offsets': {'sources': ['offsets.pyx']},
|
||
|
'parsing': {'sources': ['parsing.pyx', '../src/parser/tokenizer.c']},
|
||
|
'period': {'sources': ['period.pyx']},
|
||
|
'strptime': {'sources': ['strptime.pyx']},
|
||
|
'timedeltas': {'sources': ['timedeltas.pyx']},
|
||
|
'timestamps': {'sources': ['timestamps.pyx']},
|
||
|
'timezones': {'sources': ['timezones.pyx']},
|
||
|
'tzconversion': {'sources': ['tzconversion.pyx']},
|
||
|
'vectorized': {'sources': ['vectorized.pyx']},
|
||
|
}
|
||
|
|
||
|
foreach ext_name, ext_dict : tslibs_sources
|
||
|
py.extension_module(
|
||
|
ext_name,
|
||
|
ext_dict.get('sources'),
|
||
|
cython_args: ['--include-dir', meson.current_build_dir(), '-X always_allow_keywords=true'],
|
||
|
include_directories: [inc_np, inc_pd],
|
||
|
dependencies: ext_dict.get('deps', ''),
|
||
|
subdir: 'pandas/_libs/tslibs',
|
||
|
install: true
|
||
|
)
|
||
|
endforeach
|
||
|
|
||
|
py.install_sources('__init__.py',
|
||
|
pure: false,
|
||
|
subdir: 'pandas/_libs/tslibs')
|