[python-xrayutilities] 01/01: Integrated the sphinx build.

Eugen Wintersberger eugenwintersberger-guest at alioth.debian.org
Mon Oct 14 14:44:41 UTC 2013


This is an automated email from the git hooks/post-receive script.

eugenwintersberger-guest pushed a commit to branch master
in repository python-xrayutilities.

commit 63419cb85bd4e7c092057dd828a2fee74ea0a4d8
Author: Eugen Wintersberger <eugen.wintersberger at gmail.com>
Date:   Wed Sep 25 13:06:45 2013 +0200

    Integrated the sphinx build.
---
 debian/control                       |   13 ++++++++++++-
 debian/python-xrayutilities-doc.docs |    3 +++
 debian/rules                         |   11 +++++++++++
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index cf517a9..ac84135 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: python-xrayutilities
 Priority: extra
 Maintainer: Eugen Wintersberger <eugen.wintersberger at gmail.com>
 Build-Depends: debhelper (>= 9.0.0), python-all-dev, python-setuptools,
- python-numpy (>=1.6), 
+ python-numpy (>=1.6), python-sphinx (>= 1.0.7+dfsg)
 X-Python-Version: >=2.6
 Standards-Version: 3.9.4
 Section: python
@@ -19,3 +19,14 @@ Description: Package for xray data reduction and analysis
  data. It consists of a python package and several routines coded in C. It
  especially useful for the reciprocal space conversion of diffraction data taken
  with linear and area detectors.
+
+Package: python-xrayutilities-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends},
+Description: Package for xray data reduction and analysis - documentation
+ xrayutilities is a collection of scripts used to analyze x-ray diffraction
+ data. It consists of a python package and several routines coded in C. It
+ especially useful for the reciprocal space conversion of diffraction data taken
+ with linear and area detectors.
+ 
diff --git a/debian/python-xrayutilities-doc.docs b/debian/python-xrayutilities-doc.docs
new file mode 100644
index 0000000..f03a86c
--- /dev/null
+++ b/debian/python-xrayutilities-doc.docs
@@ -0,0 +1,3 @@
+doc/latex/*.pdf
+doc/texinfo/*.info
+doc/html
diff --git a/debian/rules b/debian/rules
index 19189bf..7021808 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,14 @@ override_auto_install:
 
 build-python%:
 	python$* setup.py build
+	BUILDPATH="$$PWD/`ls -d build/lib*`"; \
+	echo $$BUILDPATH
+	echo $$PWD
+	cd doc && export PYTHONPATH="$$PWD/`ls -d ../build/lib*`" &&  sphinx-build -b latex source latex
+	cd doc/latex &&  make
+	cd doc && export PYTHONPATH="$$PWD/`ls -d ../build/lib*`" && sphinx-build -b texinfo source texinfo
+	cd doc/texinfo && make
+	cd doc && export PYTHONPATH="$$PWD/`ls -d ../build/lib*`" && sphinx-build -b html source html
 
 override_dh_auto_build:$(PYTHON2:%=build-python%)
 
@@ -29,3 +37,6 @@ install-python%:
 override_dh_auto_install:$(PYTHON2:%=install-python%)
 	dh_numpy
 
+override_installdocs:
+	dh_sphinxdoc doc/html
+	dh_installdocs

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-xrayutilities.git



More information about the debian-science-commits mailing list