BUILD: Fix duplicate files warning
- [ ] closes #54888  (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Is there a way for meson to automatically pick these up instead of manually having to specify? For sure doesn't change often, but would be nice to avoid hard coding > Is there a way for meson to automatically pick these up instead of manually having to specify? For sure doesn't change often, but would be nice to avoid hard coding

Sadly, I think it has to be hardcoded, since the meson devs discourage using things like wildcards that would let us include all pyi files at once.
(Luckily, this is only for _libs though, since we have a mix of C/Cython/Python sources in there.) Will self merge then so this gets in for the release. One thing you could do is offload the file list itself to a separate plaintext file containing one filename per line, and use it from meson as:
```meson
sources_to_install = fs_mod.read('sources.list').strip().split()
```

It's then much easier to statically verify through any means you like that the list of files is updated. You could have a CI script verify it as a test, for example, or auto refresh the file via a git-pre-commit hook.

This fulfills meson's requirement -- that any changes to the build plan are detected and force a reconfigure, so that running `meson install` will not result in outdated installdata that doesn't install all the files it was supposed to. Use of `fs_mod.read()` causes the file in question to become a regenerate dependency.