-
|
If I understand correctly, meson-python includes all the files in the sdist and it is not possible to exclude some directories or files. In contrast, setuptools and Hatch support controlling which files are included in the sdist. For Hatch, there are few related options in the pyproject.toml file: https://hatch.pypa.io/latest/config/build/#file-selection Would it be possible to at least be able to exclude some files with meson-python ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
|
meson-python uses |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for this partial solution! Does meson-Python officially support only Git repositories? What about other cases? See mesonbuild/meson#12796 |
Beta Was this translation helpful? Give feedback.
-
|
This is not a partial solution: it is the only solution there is. meson-python uses I think the equivalent of in it. |
Beta Was this translation helpful? Give feedback.
-
|
I'd just also like to note that hatch's approach to selecting files for inclusion/exclusion in an sdist / wheel uses the This is why meson didn't select such an approach, and never will. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
@rgommers I've banned @Mohataseem89 for being hostile to FOSS projects. |
Beta Was this translation helpful? Give feedback.
meson-python uses
meson distto create sdist.meson distobeys theexport-ignoregit attribute. Just mark the files you want to exclude from the sdist with this attribute in a.gitattributesfile.