Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD: Fix duplicate files warning #55206

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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