|
@@ -9,7 +9,7 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
|
|
|
pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1))
|
|
|
pythonpath_dbg = $$(ls -d $(CURDIR)/build/lib_d.*-$(1) 2>/dev/null || ls -d $(CURDIR)/build/lib.*$(1)-pydebug)
|
|
|
|
|
|
-pyflavours = python2,python3$(shell which pypy >/dev/null && echo -n ,pypy)
|
|
|
+pyflavours = python3$(shell which pypy >/dev/null && echo -n ,pypy)
|
|
|
|
|
|
%:
|
|
|
dh $* --with $(pyflavours) --buildsystem=pybuild
|
|
@@ -24,7 +24,6 @@ override_dh_auto_clean:
|
|
|
|
|
|
override_dh_auto_test:
|
|
|
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
|
|
|
- $(MAKE) check PYTHON=python
|
|
|
$(MAKE) check PYTHON=python3
|
|
|
ifneq (,$(findstring pypy,$(pyflavours)))
|
|
|
$(MAKE) check PYTHON=pypy
|
|
@@ -41,7 +40,6 @@ ifneq (,$(findstring pypy,$(pyflavours)))
|
|
|
rm -rf debian/tmp/usr/lib/pypy/bin
|
|
|
endif
|
|
|
# Install everything excluding the *_d.so debug extensions to python-dulwich and python3-dulwich
|
|
|
- dh_install -p python-dulwich -X"*_d.so" -Xpypy "debian/tmp/usr/lib/python2*/*-packages"
|
|
|
dh_install -p python3-dulwich -X"*_d.so" -Xpypy "debian/tmp/usr/lib/python3*/*-packages"
|
|
|
ifneq (,$(findstring pypy,$(pyflavours)))
|
|
|
# Install the pypy files to pypy-dulwich
|
|
@@ -49,14 +47,12 @@ ifneq (,$(findstring pypy,$(pyflavours)))
|
|
|
endif
|
|
|
|
|
|
override_dh_installdocs:
|
|
|
- dh_installdocs -ppython-dulwich docs/tutorial -X.gitignore -XMakefile
|
|
|
dh_installdocs -ppython3-dulwich docs/tutorial -X.gitignore -XMakefile
|
|
|
ifneq (,$(findstring pypy,$(pyflavours)))
|
|
|
dh_installdocs -ppypy-dulwich docs/tutorial -X.gitignore -XMakefile
|
|
|
endif
|
|
|
|
|
|
override_dh_strip:
|
|
|
- dh_strip -p python-dulwich --dbgsym-migration='python-dulwich-dbg (<< 0.16.4-1)'
|
|
|
dh_strip -p python3-dulwich --dbgsym-migration='python3-dulwich-dbg (<< 0.16.4-1)'
|
|
|
ifneq (,$(findstring pypy,$(pyflavours)))
|
|
|
dh_strip -p pypy-dulwich
|