Skip to content

Commit

Permalink
BUILD: Fix duplicate files warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Sep 19, 2023
1 parent 5d8cacd commit 75891c0
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 7 deletions.
37 changes: 34 additions & 3 deletions pandas/_libs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,40 @@ foreach ext_name, ext_dict : libs_sources
)
endforeach

py.install_sources(
# Basically just __init__.py and the .pyi files
sources_to_install = [
'__init__.py',
subdir: 'pandas/_libs'
)
'algos.pyi',
'arrays.pyi',
'byteswap.pyi',
'groupby.pyi',
'hashing.pyi',
'hashtable.pyi',
'index.pyi',
'indexing.pyi',
'internals.pyi',
'interval.pyi',
'join.pyi',
'json.pyi',
'lib.pyi',
'missing.pyi',
'ops.pyi',
'ops_dispatch.pyi',
'parsers.pyi',
'properties.pyi',
'reshape.pyi',
'sas.pyi',
'sparse.pyi',
'testing.pyi',
'tslib.pyi',
'writers.pyi'
]

foreach source: sources_to_install
py.install_sources(
source,
subdir: 'pandas/_libs'
)
endforeach

subdir('window')
27 changes: 24 additions & 3 deletions pandas/_libs/tslibs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,28 @@ foreach ext_name, ext_dict : tslibs_sources
)
endforeach

py.install_sources(
sources_to_install = [
'__init__.py',
subdir: 'pandas/_libs/tslibs'
)
'ccalendar.pyi',
'conversion.pyi',
'dtypes.pyi',
'fields.pyi',
'nattype.pyi',
'np_datetime.pyi',
'offsets.pyi',
'parsing.pyi',
'period.pyi',
'strptime.pyi',
'timedeltas.pyi',
'timestamps.pyi',
'timezones.pyi',
'tzconversion.pyi',
'vectorized.pyi'
]

foreach source: sources_to_install
py.install_sources(
source,
subdir: 'pandas/_libs/tslibs'
)
endforeach
12 changes: 12 additions & 0 deletions pandas/_libs/window/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@ py.extension_module(
subdir: 'pandas/_libs/window',
install: true
)

sources_to_install = [
'aggregations.pyi',
'indexers.pyi'
]

foreach source: sources_to_install
py.install_sources(
source,
subdir: 'pandas/_libs/window'
)
endforeach
1 change: 0 additions & 1 deletion pandas/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ subdir('_libs')

subdirs_list = [
'_config',
'_libs',
'_testing',
'api',
'arrays',
Expand Down

0 comments on commit 75891c0

Please sign in to comment.