Hi, Le samedi 15 février 2025 à 12:10 +0100, Stéphane Glondu a écrit :
> > My approach to this specific problem would be to add to dune the > possibility to use some configuration file (or environment variables) > as input for the substitutions, instead of directly querying the > VCS. This configuration could then be set up as part of the Debian > packaging. Now that you mention it, python-setuptools-scm has a SETUPTOOL_SCM_PRETEND_VERSION environment variable which does precisely that. If you search: https://codesearch.debian.net/search?q=SETUPTOOLS_SCM_PRETEND_VERSION&literal=1&perpkg=1 and look at the debian/rules packages, you'll see there are quite a few packages using this. I just reported it as a feature request on the dune (the culprit OCaml package builder) : https://github.com/ocaml/dune/issues/11484 Cheers, J.Puydt