[Python-modules-commits] r14744 - in packages/python-keyczar/trunk/debian (rules)

lfaraone at users.alioth.debian.org lfaraone at users.alioth.debian.org
Mon Oct 25 16:14:33 UTC 2010


    Date: Monday, October 25, 2010 @ 16:14:28
  Author: lfaraone
Revision: 14744

Drop usage of DEB_*, use distutils instead

Modified:
  packages/python-keyczar/trunk/debian/rules

Modified: packages/python-keyczar/trunk/debian/rules
===================================================================
--- packages/python-keyczar/trunk/debian/rules	2010-10-24 19:57:21 UTC (rev 14743)
+++ packages/python-keyczar/trunk/debian/rules	2010-10-25 16:14:28 UTC (rev 14744)
@@ -9,9 +9,6 @@
 %:
 	dh $@
 
-DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
-DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
-
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e ; \
@@ -20,7 +17,7 @@
 		if [ "$$py" \< "2.6" ]; then \
 			PYTHONPATH=$(CURDIR)/build/lib python$$py alltests.py; \
 		else \
-			PYTHONPATH=$(CURDIR)/build/lib.$(DEB_BUILD_ARCH_OS)-$(DEB_HOST_GNU_CPU)-$$py python$$py alltests.py; \
+			PYTHONPATH=$(CURDIR)/build/lib.$(shell python -c 'import distutils.util as d; print d.get_platform()')-$$py python$$py alltests.py; \
     		fi; \
 	done
 endif




More information about the Python-modules-commits mailing list