File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ scikit-learn (0.14-1) unstable; urgency=low
10
10
- dropped swig (not needed since awhile)
11
11
- moved sphinx, PIL, and graphviz to Build-Depends-Indep since
12
12
needed only for -doc package
13
- - require sphinx 1.1.3 due to problems with unicode in earlier
14
- present on older Debian/Ubuntu's versions
13
+ - do not build documentation when sphinx < 1.1.3 due to problems
14
+ with unicode in earlier present on older Debian/Ubuntu's versions
15
15
- boosted policy to 3.9.4 (no further changes)
16
16
- migrate from python-support to dh_python2
17
17
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Build-Depends: debhelper (>= 7.0.50),
13
13
python-matplotlib,
14
14
python-joblib (>= 0.4.5), python-support
15
15
Build-Depends-Indep:
16
- python-sphinx (>= 1.1.3~ ), python-imaging, graphviz,
16
+ python-sphinx (>= 1.0 ), python-imaging, graphviz,
17
17
Standards-Version: 3.9.4
18
18
XS-Python-Version: >= 2.6
19
19
Homepage: http://scikit-learn.sourceforge.net
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ PACKAGE_ROOT_DIR = debian/${PACKAGE_NAME}
7
7
PYVERS = $(shell pyversions -vr)
8
8
PYVER = $(shell pyversions -vd)
9
9
10
+ SPHINX_VER := $(shell python -c 'from sphinx import __version__; print __version__')
11
+ NODOC = $(shell dpkg --compare-versions $(SPHINX_VER ) lt 10.1.3 && echo "nodoc" || echo "")
12
+ export DEB_BUILD_OPTIONS += $(NODOC )
13
+
10
14
# Some tests are known to fail randomly so need to be excluded ATM
11
15
NOSEARGS :=
12
16
# --exclude='test_(sparse_svc_clone_with_callable_kernel|spectral_clustering_sparse|ovr_fit_predict)'
56
60
export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
57
61
cd doc; $(MAKE) html
58
62
endif
63
+ else
64
+ mkdir -p doc/_build/html
65
+ echo "<HTML><BODY><P>sklearn documentation was not built.<P>Please visit <A HREF='http://scikit-learn.org'>http://scikit-learn.org</A></BODY></HTML>" >| doc/_build/html/index.html
59
66
endif
60
67
: # Use jquery from Debian package, so prune shipped one
61
68
-rm doc/_build/html/_static/jquery.js
You can’t perform that action at this time.
0 commit comments