Skip to content

Commit

Permalink
debian/rules: add a link to pypa/setuptools_scm#549
Browse files Browse the repository at this point in the history
We are using SETUPTOOLS_SCM_PRETEND_VERSION because the fallback_version
feature in setuptools_scm does not work when git commands return errors
(eg. when building from a tarball or git repo where no tags are present).

Add a link to the upstream issue adjacent to where
SETUPTOOLS_SCM_PRETEND_VERSION is specified.

Upstream will start providing fallback_version in the next
release so we should be able to remove the environment variable once
the upstream setuptools_scm issue has been resolved.

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Jan 23, 2023
1 parent 3052f0e commit d8aa46b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debian/rules
Expand Up @@ -7,6 +7,7 @@

# Override setuptools_scm's version detection.
# setuptools_scm requires git tags to be present in the repository.
# https://github.com/pypa/setuptools_scm/issues/549
export SETUPTOOLS_SCM_PRETEND_VERSION=4.1.0

# Disable inclusion of private libraries in non-standard locations.
Expand Down

0 comments on commit d8aa46b

Please sign in to comment.