Package: python-stem
Version: 1.0.1-2
Severity: serious
Tags: patch
Justification: Policy 3.5

Files in /usr/lib/python3 are included in python-stem, but there is no
dependency on a python3 interpreter.  The best way to handle this, per the
Python policy, is to have a separate binary for python3 so that the python3
interpreter isn't installed if not wanted.  Please see the attached patch.

It also moves python-all/python3-all from b-d-i to b-d since python/python3
are needed for clean.
diff -Nru python-stem-1.0.1/debian/changelog python-stem-1.0.1/debian/changelog
--- python-stem-1.0.1/debian/changelog	2013-05-11 09:36:33.000000000 -0400
+++ python-stem-1.0.1/debian/changelog	2013-06-18 23:24:50.000000000 -0400
@@ -1,3 +1,12 @@
+python-stem (1.0.1-3) UNRELEASED; urgency=low
+
+  * Move python3 files into python3-stem so they can have correct dependencies
+    - Add python3-stem to debian/control
+    - Adjust debian/rules
+  * Adjust python related build-depends so clean works
+
+ -- Scott Kitterman <sc...@kitterman.com>  Tue, 18 Jun 2013 23:23:16 -0400
+
 python-stem (1.0.1-2) unstable; urgency=low
 
   * Fix FTBFS caused by python3.3 support. Thanks JakubWilk (Closes: #707160).
diff -Nru python-stem-1.0.1/debian/control python-stem-1.0.1/debian/control
--- python-stem-1.0.1/debian/control	2013-05-11 09:40:51.000000000 -0400
+++ python-stem-1.0.1/debian/control	2013-06-18 23:23:05.000000000 -0400
@@ -2,8 +2,7 @@
 Section: python
 Priority: optional
 Maintainer: Ulises Vitulli <der...@debian.org>  
-Build-Depends: debhelper (>= 9)
-Build-Depends-Indep: python,python3 | python3-all | python3-dev | python3-all-dev 
+Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-6), python3-all
 Standards-Version: 3.9.4
 Homepage: https://git.torproject.org/stem.git
 X-Python-Version: >= 2.7
@@ -18,3 +17,11 @@
  path building and various constraints on node and path selection, as well as
  statistics gathering.
 
+Package: python3-stem
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: Tor control library for Python 3
+ Stem is a TorCtl successor, a Python 3 Tor controller with extensions to
+ support path building and various constraints on node and path selection, as
+ well as statistics gathering.
+
diff -Nru python-stem-1.0.1/debian/rules python-stem-1.0.1/debian/rules
--- python-stem-1.0.1/debian/rules	2013-05-11 09:26:29.000000000 -0400
+++ python-stem-1.0.1/debian/rules	2013-06-18 23:31:05.000000000 -0400
@@ -16,12 +16,14 @@
 override_dh_auto_install:
 	dh_auto_install
 	set -ex; \
-	for py in $(PYVERS) $(PY3VERS); do \
+	for py in $(PYVERS); do \
 	$$py setup.py install --root debian/python-stem \
 	--install-layout=deb; \
 	done; \
-	rm -rf debian/python-stem/usr/lib/python3/dist-packages/stem/__pycache__ ; \
-	rm -rf debian/python-stem/usr/lib/python3/dist-packages/stem/*/__pycache__  
+	for py in $(PY3VERS); do \
+	$$py setup.py install --root debian/python3-stem \
+	--install-layout=deb; \
+	done; \
 	
 override_dh_auto_clean:
 	dh_auto_clean -- --all

Reply via email to