# HG changeset patch # User Julien Cristau # Date 1342769475 -7200 # Node ID 864a92b10cb8bd484ba1200b0de1cc105ce60bc0 # Parent 65fecbeb9c3a13d0097a8b63bf99637072a7ff87 [book] Some tweaks to fix cubicweb-documentation package generation - Fix up PYTHONPATH setting to make sure sphinx can find cubicweb modules - Add a few missing build-dependencies diff -r 65fecbeb9c3a -r 864a92b10cb8 debian/control --- a/debian/control Thu Jul 19 10:27:04 2012 +0200 +++ b/debian/control Fri Jul 20 09:31:15 2012 +0200 @@ -7,18 +7,25 @@ Adrien Di Mascio , Aurélien Campéas , Nicolas Chauvat -Build-Depends: debhelper (>= 7), python (>= 2.5), python-central (>= 0.5), python-sphinx, python-logilab-common, python-unittest2 -# for the documentation: -# python-sphinx, python-logilab-common, python-unittest2, logilab-doctools, logilab-xml +Build-Depends: + debhelper (>= 7), + python (>= 2.5), + python-central (>= 0.5), + python-sphinx, + python-logilab-common, + python-unittest2, + python-logilab-mtconverter, + python-rql, + python-yams, + python-lxml, Standards-Version: 3.9.1 Homepage: http://www.cubicweb.org -XS-Python-Version: >= 2.5, << 3.0 +XS-Python-Version: >= 2.5 Package: cubicweb Architecture: all XB-Python-Version: ${python:Versions} Depends: ${misc:Depends}, ${python:Depends}, cubicweb-server (= ${source:Version}), cubicweb-twisted (= ${source:Version}) -XB-Recommends: (postgresql, postgresql-plpython) | mysql | sqlite3 Recommends: postgresql | mysql | sqlite3 Description: the complete CubicWeb framework CubicWeb is a semantic web application framework. diff -r 65fecbeb9c3a -r 864a92b10cb8 debian/rules --- a/debian/rules Thu Jul 19 10:27:04 2012 +0200 +++ b/debian/rules Fri Jul 20 09:31:15 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: