File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ scikit-learn (0.14.1-1) unstable; urgency=low
2
2
3
3
* The freshiest upstream release
4
4
- addressed 'clean -a' issue, thus removing the dh_auto_clean override
5
+ * debian/rules
6
+ - if available cython >= 0.19 -- re-build Cythonized sources while
7
+ monitoring for changes using dh_autoreconf
5
8
6
9
-- Yaroslav Halchenko <debian@onerussian.com> Thu, 08 Aug 2013 14:06:48 -0400
7
10
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Section: python
3
3
Priority: optional
4
4
Maintainer: NeuroDebian Team <team@neuro.debian.net>
5
5
Uploaders: Yaroslav Halchenko <debian@onerussian.com>, Michael Hanke <michael.hanke@gmail.com>
6
- Build-Depends: debhelper (>= 7.0.50),
6
+ Build-Depends: debhelper (>= 7.0.50), dh-autoreconf,
7
7
python-all-dev (>= 2.5),
8
8
cython (>= 0.12~),
9
9
python-setuptools,
Original file line number Diff line number Diff line change @@ -11,15 +11,25 @@ SPHINX_VER := $(shell python -c 'from sphinx import __version__; print __version
11
11
NODOC = $(shell dpkg --compare-versions $(SPHINX_VER ) lt 10.1.3 && echo "nodoc" || echo "")
12
12
export DEB_BUILD_OPTIONS += $(NODOC )
13
13
14
+ CYTHON_VER := $(shell dpkg -l cython 2>/dev/null | awk '/^ii/{print $$3;}' || echo 0)
15
+ RECONF = $(shell dpkg --compare-versions $(CYTHON_VER ) ge 0.19 && echo ",autoreconf" || echo "")
16
+
14
17
# Some tests are known to fail randomly so need to be excluded ATM
15
18
NOSEARGS :=
16
19
# --exclude='test_(sparse_svc_clone_with_callable_kernel|spectral_clustering_sparse|ovr_fit_predict)'
17
20
18
21
# Mega rule
19
22
% :
20
23
: # Explicit build system to avoid use of all-in-1 Makefile
21
- dh $@ --buildsystem=python_distutils --with python2
24
+ dh $@ --buildsystem=python_distutils --with python2$(RECONF )
25
+
26
+ cythonize :
27
+ @echo " D: removing previously generated by Cython sources"
28
+ find -iname * .c | xargs grep -l ' Generated by Cython' | xargs rm
29
+ make cython
22
30
31
+ override_dh_autoreconf :
32
+ dh_autoreconf debian/rules -- cythonize
23
33
24
34
override_dh_clean :
25
35
rm -rf build doc/_build doc/auto_examples * -stamp * .egg-info sklearn/datasets/__config__.py
You can’t perform that action at this time.
0 commit comments