[Python-modules-team] Bug#839687: Bug#839687: how to manage setuptools-scm packages in debian?

Brian May bam at debian.org
Tue Oct 4 07:28:10 UTC 2016


Antoine Beaupré <anarcat at debian.org> writes:

> Answering my own question (and it would be nice to have this documented
> somewhere!), the solution is to use a more recent dh-python dependency
> and depend on python-setuptools-scm explicitely, *and* use
> --buildsystem=pybuild.

In the past I have found I need to set (in debian/rules):

export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell cat PKG-INFO | sed -n 's/^Version: //p')

otherwise the version won't come out correctly.
-- 
Brian May <bam at debian.org>



More information about the Python-modules-team mailing list