From e49ee2712f5c6c35262c06fb58180c5a1506f889 Mon Sep 17 00:00:00 2001
From: Jeremy Bicha <jbicha@debian.org>
Date: Sat, 17 Nov 2018 07:22:24 -0500
Subject: [PATCH] Simplify debian/rules a bit & fix python3.7-only build

Closes: #913952
---
 debian/rules | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/debian/rules b/debian/rules
index f19fc81..5ca8c2d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,18 +15,12 @@ ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	$(MAKE) -C doc clean
 endif
 
-build-python%:
-	python$* setup.py build
-
 override_dh_auto_install: $(PYTHON3:%=install-python%)
 	dh_auto_install
-	rm -rf debian/python3-xarray/usr/lib/python3.7
 	find debian/python3-xarray -name '*.idx' -exec chmod -x {} \;
 
-override_dh_auto_build: export http_proxy=127.0.0.1:9
-override_dh_auto_build: export https_proxy=127.0.0.1:9
-override_dh_auto_build: $(PYTHON3:%=build-python%)
-	dh_auto_build
+override_dh_auto_build:
+	http_proxy=127.0.0.1:9 https_proxy=127.0.0.1:9 dh_auto_build
 ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
 	PYTHONPATH=$(CURDIR) $(MAKE) -C doc html
 endif
-- 
2.19.1

Reply via email to