scikit-hep / hist

Histogramming for analysis powered by boost-histogram

Home Page:https://hist.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Fails to build from a tarball: expects git to be present

yurivict opened this issue · comments

Error:

LookupError: Error getting the version from source `vcs`: setuptools-scm was unable to detect version for /disk-samsung/freebsd-ports/misc/py-hist/work-py39/hist-2.6.1-31-g9d6543a.

Package builders typically use tarballs, not git clones.

Could you please make this error non-fatal or add a way to supply the version by the caller?

Set SETUPTOOLS_SCM_PRETEND_VERSION to the version and it won’t require git.

I think we can actually make the git archive work by itself as well now with setuptools_scm 7+ and a recent copy of git (which GitHub has).

SETUPTOOLS_SCM_PRETEND_VERSION helps, thanks.

There should be a version setuptools_scm can use even in the tarball now.