Skip to content

Commit

Permalink
Backport PR #55206 on branch 2.1.x (BUILD: Fix duplicate files warnin…
Browse files Browse the repository at this point in the history
…g) (#55222)

Backport PR #55206: BUILD: Fix duplicate files warning

Co-authored-by: Thomas Li <[email protected]>
  • Loading branch information
meeseeksmachine and lithomas1 authored Sep 20, 2023
1 parent 81768de commit 84850f3
Show file tree
Hide file tree
Showing 4 changed files with 71 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
13 changes: 13 additions & 0 deletions pandas/_libs/window/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ py.extension_module(
subdir: 'pandas/_libs/window',
install: true
)

sources_to_install = [
'__init__.py',
'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 84850f3

Please sign in to comment.