Hi Paul!

On Fri, Jul 12, 2024 at 12:59:43PM +0200, Paul Boddie wrote:
> The packaging is in git, yes. I suppose what I don't understand is the role 
> of 
> setuptools_scm in building a package for installation (or the construction of 
> a binary package). A source package will aim to incorporate all of the 
> tracked 
> files, but a built/binary package may not.

setuptools_scm ships an entry point in [setuptools.file_finders] group,
so when you are building a package from a git checkout, it automatically
includes all files which are tracked in git.

In one of my packages, I had a similar situation that some files were missing
when not building from git. At first I wanted to fix it by adding the missing
files to MANIFEST.in [1]. But then upstream suggested a different approach,
using setuptools_scm's support for git archives [2]. So we went this way [3].
Maybe you can use any of these two approaches in your package, too.

[1]: https://github.com/Python-SIP/sip/pull/28
[2]: https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives
[3]: https://github.com/Python-SIP/sip/pull/30

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to