[numba] 09/20: build docs with Sphinx 2 in build folder

Daniel Stender stender at moszumanska.debian.org
Fri Dec 23 15:33:29 UTC 2016


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

stender pushed a commit to branch master
in repository numba.

commit 7dc83ab97c88900a3cf7a8d6771ba6f69006f837
Author: Daniel Stender <stender at debian.org>
Date:   Fri Dec 23 10:27:42 2016 +0100

    build docs with Sphinx 2 in build folder
---
 debian/changelog |  9 ++++++++-
 debian/clean     | 10 ----------
 debian/control   |  4 ++--
 debian/rules     |  4 ++--
 4 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 29d8fc0..4fac4c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,8 +10,15 @@ numba (0.29.0-1) UNRELEASED; urgency=medium
   * add deb/gbp.conf.
   * let deb/clean handle egg-info/ (added), not deb/source/options
     (dropped).
+  * build docs with Sphinx 2 in build folder (spare in-place extensions,
+    deal with versioneer from __init__.py, work around problems with
+    Sphinx 3):
+    + build-depend on Sphinx 2 in deb/clean.
+    + remove in-place creation of extensions in deb/rules.
+    + run sphinx-build from build dir in rules (before that, copy docs into).
+    + drop in-place extensions from deb/clean (not needed).
 
- -- Daniel Stender <stender at debian.org>  Fri, 23 Dec 2016 09:48:41 +0100
+ -- Daniel Stender <stender at debian.org>  Fri, 23 Dec 2016 10:17:47 +0100
 
 numba (0.23.1-1) experimental; urgency=medium
 
diff --git a/debian/clean b/debian/clean
index 45ac42a..479e0e9 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,11 +1 @@
-numba/_helperlib.*.so
-numba/_dispatcher.*.so
-numba/runtime/_nrt_python.*.so
-numba/_dynfunc.*.so
-numba/mviewbuf.*.so
-numba/_npymath_exports.*.so
-numba/npyufunc/_internal.*.so
-numba/npyufunc/workqueue.*.so
-numba/typeconv/_typeconv.*.so
-numba/jitclass/_box.*.so
 numba*.egg-info/
\ No newline at end of file
diff --git a/debian/control b/debian/control
index 7c63cb2..729b754 100644
--- a/debian/control
+++ b/debian/control
@@ -12,8 +12,8 @@ Build-Depends:
  python3-llvmlite,
  python-numpy,
  python3-numpy,
- python3-sphinx,
- python3-sphinx-rtd-theme,
+ python-sphinx,
+ python-sphinx-rtd-theme,
  python-pytest,
  python3-pytest
 Standards-Version: 3.9.8
diff --git a/debian/rules b/debian/rules
index 698ae05..4a33c83 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,8 +14,8 @@ override_dh_installchangelogs:
 
 override_dh_installdocs:
 	dh_installdocs -A README.rst
-	python3 setup.py build_ext -i # docs need extensions in-place to build
-	PYTHONPATH=. sphinx-build -N -bhtml docs/source/ debian/numba-doc/usr/share/doc/numba-doc/html/
+	cp -a docs .pybuild/pythonX.Y_2.7/build
+	sphinx-build -N -bhtml .pybuild/pythonX.Y_2.7/build/docs/source/ debian/numba-doc/usr/share/doc/numba-doc/html/
 
 override_dh_compress:
 	dh_compress -X.ipynb -X.ods -X.py # save examples and notebooks

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



More information about the debian-science-commits mailing list