# HG changeset patch # User Faheem Mitha # Date 1641749728 -19800 # Node ID 95500f2f0966ca4714dfbc9b62ff190593e4a927 # Parent 0fa9cc8075aae8e8a63ff5b61becec21dadf5245 debian: changes to build only for Python 3 diff -r 0fa9cc8075aa -r 95500f2f0966 debian/control --- a/debian/control Fri Feb 18 16:05:45 2022 +0300 +++ b/debian/control Sun Jan 09 23:05:28 2022 +0530 @@ -8,11 +8,10 @@ Standards-Version: 4.3.0 Build-Depends: mercurial (>= 4.8), - python, python3, debhelper (>= 10), dh-python, - python-sphinx, + python3-sphinx, imagemagick, librsvg2-bin, graphviz, @@ -24,7 +23,6 @@ Package: mercurial-evolve Architecture: all Depends: - ${python:Depends}, ${python3:Depends}, ${misc:Depends}, ${sphinxdoc:Depends}, diff -r 0fa9cc8075aa -r 95500f2f0966 debian/rules --- a/debian/rules Fri Feb 18 16:05:45 2022 +0300 +++ b/debian/rules Sun Jan 09 23:05:28 2022 +0530 @@ -2,13 +2,13 @@ #export DH_VERBOSE=1 %: - dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild + dh $@ --with python3,sphinxdoc --buildsystem=pybuild ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS))) override_dh_auto_build: dh_auto_build # Workaround for Sphinx in Debian Buster defaulting to Python 3 - SPHINXBUILD="python -m sphinx -bhtml" $(MAKE) -C docs + SPHINXBUILD="python3 -m sphinx -bhtml" $(MAKE) -C docs endif hgsrc_defined: @@ -20,11 +20,6 @@ cd tests && python $(HGSRC)/tests/run-tests.py --with-hg=$(HGSRC)/hg --blacklist=$(CURDIR)/debian/test-blacklist endif -override_dh_python2: - # avoid conflict with mercurial's own hgext3rd/__init__.py - find debian -path '*/hgext3rd/__init__.py' -delete - dh_python2 - override_dh_python3: # avoid conflict with mercurial's own hgext3rd/__init__.py find debian -path '*/hgext3rd/__init__.py' -delete