diff -r c09feae04094 -r 268b6349baf3 debian/rules --- a/debian/rules Fri Aug 03 13:29:37 2012 +0200 +++ b/debian/rules Fri Sep 07 14:01:59 2012 +0200 @@ -11,10 +11,14 @@ build-stamp: dh_testdir NO_SETUPTOOLS=1 python setup.py build + # cubicweb.foo needs to be importable by sphinx, so create a cubicweb symlink to the source dir + mkdir -p debian/pythonpath + ln -sf $(CURDIR) debian/pythonpath/cubicweb # documentation build is now made optional since it can break for old # distributions and we don't want to block a new release of Cubicweb # because of documentation issues. - -PYTHONPATH=$(CURDIR)/.. $(MAKE) -C doc/book/en all + -PYTHONPATH=$${PYTHONPATH:+$${PYTHONPATH}:}$(CURDIR)/debian/pythonpath $(MAKE) -C doc/book/en all + rm -rf debian/pythonpath touch build-stamp clean: