-
Notifications
You must be signed in to change notification settings - Fork 69
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
BUG: add generated files to sdist #177
Conversation
Thanks @lithomas1. I don't think this specific change is a good idea - it's going to pull in all sorts of files that were not intended to be included. I think what you want instead to include specific files that are not under version control (like
We had a similar version-related file with the git hash, but got rid of it when moving to Meson. We may want to bring it back, but it hasn't been a priority so far. |
I'm a little confused. I'm pretty sure the only way to get generated files into the sdist is by adding them with One thing that meson-python might consider doing, is parsing a MANIFEST file like setuptools. The .tar.gz meson generates includes a bunch of extra things, and its probably much easier to do this filtering in meson. |
Ralf, can you elaborate on that? AFAICT it will only pull files that are present in the Meson dist but not on the git checkout. |
I think I misunderstood what's going on here. A quick try with a breakpoint under |
Cool, I'll add tests in the future then. |
a740523
to
497bf69
Compare
I pushed a small refactoring to make the code a bit easier to maintain, I hope you don't mind. Let me know if you want me to avoid that in the future. |
No worries. Thanks for fixing the pre-commit as well. |
pre-commit.ci autofix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @lithomas1!
Signed-off-by: Filipe Laíns <[email protected]>
for more information, see https://pre-commit.ci
cde03d1
to
5c3ce38
Compare
Generated files were not being added to the sdist.
This is useful for pandas, since we run a versioneer script to generate the sdist.
I think scipy avoids this, since they don't add generate a version file for their sdist?
I'll add a test, sometime in the future, but I'm a little busy now, so feel free to push to this branch in the meantime.