[Python-apps-commits] r9875 - in packages/tox/trunk/debian (rules)

barry at users.alioth.debian.org barry at users.alioth.debian.org
Fri Jul 12 17:58:47 UTC 2013


    Date: Friday, July 12, 2013 @ 17:58:46
  Author: barry
Revision: 9875

$HOME must be valid in order to run tox due to upstream bug.

Modified:
  packages/tox/trunk/debian/rules

Modified: packages/tox/trunk/debian/rules
===================================================================
--- packages/tox/trunk/debian/rules	2013-07-12 17:47:20 UTC (rev 9874)
+++ packages/tox/trunk/debian/rules	2013-07-12 17:58:46 UTC (rev 9875)
@@ -32,13 +32,18 @@
 	rm -rf *.egg-info
 	rm -rf debian/manpage/_build
 
-# $HOME must exist for tox to be happy.  Also, because the tox(1) script
-# doesn't exist until the package is installed (although I suppose we could
-# run it out of the built location), invoke the main() function explicitly.
+# $HOME must exist for tox to be happy.  
+#
+# https://bitbucket.org/hpk42/tox/issue/105/hidden-dependency-on-home#comment-5176027
+#
+# Also, because the tox(1) script doesn't exist until the package is
+# installed (although I suppose we could run it out of the built
+# location), invoke the main() function explicitly. 
+
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 test-python%:
 	PYTHONPATH=.:/usr/lib/python$*/dist-packages \
-	python$* -c 'from tox._cmdline import main; main(["-e", "py"+"$*".replace(".", "")])'
+	HOME=/tmp python$* -c 'from tox._cmdline import main; main(["-e", "py"+"$*".replace(".", "")])'
 
 override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
 endif




More information about the Python-apps-commits mailing list