[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#788539: [PATCH] Find Python module dependencies



Thanks for packaging caffe for Debian!

I noticed that python-caffe-* didn't have their Python module dependencies
listed.

The attached patch (which I tested on Ubutnu 14.04, but should be relevant
to Debian unstable, the latest debhelper, etc.) fixes dependency
autodetection.

-john
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -93,8 +93,8 @@ ifeq (y, $(flag_build_caffe_cuda))
 		-- runtest LD_LIBRARY_PATH=${CAFFE_CUDA_BUILDDIR}/lib/ 
 endif
 
-override_dh_pysupport:
-	dh_python2
+override_dh_python2:
+	dh_python2 --requires=python/requirements.txt
 
 override_dh_auto_install:
 	dh_auto_install --builddirectory=${CAFFE_CPU_BUILDDIR} \

Reply to: