Closed ankith26 closed 1 month ago
- There is one point of difference, the docs/generated folder is included in the sdist generated by setup.py sdist, but not the pypa/build sdist. This is one of the things that will be taken care due to https://github.com/pygame-community/pygame-ce/pull/2853 being merged.
If that's merged, how does it need taking care of? I don't understand.
I ran this locally and saw the generated docs weren't in the sdist.
I ran this locally and saw the generated docs weren't in the sdist.
Yes, that's intended. And the purpose of #2853 is to ensure that the setup docs command runs atleast once as part of the build process itself (and therefore, runs when the sdist is installed on the user side) so in the end, the user still has the generated docs as before.
We can use pypa/build to make an sdist file, now that we have the meson buildconfig.
I added a
.gitattributes
file, to skip a few files and ensure that the generated sdist is identical* to the one generated bysetup.py sdist
* There is one point of difference, the
docs/generated
folder is included in the sdist generated bysetup.py sdist
, but not the pypa/build sdist. This is one of the things that will be taken care due to #2853 being merged.PS: this PR also fixes a little bug in #2853 (so this is a sort of a successor PR to that)