I would recommend to look into rules of pandas package where I with
Julian's initiative have somewhat harmonized (although it is
still quite ugly) building both python2 and python3 with moving .so to
-lib packages .
I know that MDP's author is also eager to get python3-sklearn package so
it would be great if you join the effort... changes -- better send as a
PR against git://github.com/yarikoptic/scikit-learn.git -- would be
easier to review/merge
cheers!
On Tue, 04 Nov 2014, Zack Weinberg wrote:
The scikit-learn packaging only builds python2 packages, even though
upstream does support python3 (this is bug #730532). I happen to need
scikit with python3 so I tried to update the packaging using the
instructions at https://wiki.debian.org/Python/Pybuild , but I
consistently get a python3-sklearn package containing only
/usr/share/doc. Can anyone suggest what I might have done wrong? In
the build log, it appears that pybuild did build both v2 and v3
versions of the software, but then only v2 got copied into appropriate
subdirectories of debian/ to be picked up by dpkg-deb.
I'm attaching my modified debian/control and debian/rules. I already
know that commenting out the override_dh_python2 block broke something
*else* -- that's not the immediate problem.
zw
[-- octet-filter file type: ASCII text --]
Source: scikit-learn
Section: python
Priority: optional
Maintainer: NeuroDebian Team t...@neuro.debian.net
Uploaders: Yaroslav Halchenko deb...@onerussian.com, Michael Hanke
michael.ha...@gmail.com
Build-Depends: debhelper (= 8), dh-autoreconf, dh-python,
python-all-dev (= 2.6.6-3~),
python3-all-dev (= 3.4),
cython (= 0.12~),
python-setuptools,
python3-setuptools,
python-numpy, python-scipy,
python3-numpy, python3-scipy,
libsvm-dev (= 2.84.0),
python-nose, python-matplotlib, python-joblib (= 0.4.5),
python3-nose, python3-matplotlib, python3-joblib (= 0.4.5),
gfortran, libatlas3-base, libatlas-dev, libblas-dev,
liblapack-dev
Build-Depends-Indep:
python-sphinx (= 1.0), python-imaging, graphviz,
Standards-Version: 3.9.4
X-Python-Version: = 2.6
X-Python3-Version: = 3.4
Homepage: http://scikit-learn.sourceforge.net
Vcs-Browser: http://github.com/yarikoptic/scikit-learn
Vcs-Git: git://github.com/yarikoptic/scikit-learn.git
Package: python-sklearn
Replaces: python-scikits-learn ( 0.9~)
Breaks: python-scikits-learn ( 0.9~)
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, python-numpy, python-scipy,
python-sklearn-lib(= ${source:Version}),
python-joblib (= 0.4.5),
Provides: ${python:Provides}
Recommends: python-nose, python-matplotlib
Suggests: python-dap, python-scikits-optimization, python-sklearn-doc, ipython
Enhances: python-mvpa2, python-mdp
Description: Python modules for machine learning and data mining
scikit-learn is a collection of Python modules relevant to
machine/statistical learning and data mining. Non-exhaustive list of
included functionality:
- Gaussian Mixture Models
- Manifold learning
- kNN
- SVM (via LIBSVM)
.
This is the Python 2 version.
Package: python3-sklearn
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}, python3-numpy, python3-scipy,
python3-sklearn-lib(= ${source:Version}),
python3-joblib (= 0.4.5),
Provides: ${python3:Provides}
Recommends: python3-nose, python3-matplotlib
Suggests: python3-dap, python3-scikits-optimization, python3-sklearn-doc,
ipython
Enhances: python3-mvpa2, python3-mdp
Description: Python modules for machine learning and data mining
scikit-learn is a collection of Python modules relevant to
machine/statistical learning and data mining. Non-exhaustive list of
included functionality:
- Gaussian Mixture Models
- Manifold learning
- kNN
- SVM (via LIBSVM)
.
This is the Python 3 version.
Package: python-sklearn-doc
Conflicts: python-scikits-learn-doc
Replaces: python-scikits-learn-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}, libjs-jquery
Suggests: python-sklearn, python3-sklearn
Description: documentation and examples for scikit-learn
This package contains documentation and example scripts for
python-sklearn.
Package: python-sklearn-lib
Conflicts: python-scikits-learn-lib
Replaces: python-scikits-learn-lib
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}, python-numpy
Provides: ${python:Provides}
Description: low-level implementations and bindings for scikit-learn
This is an add-on package for python-sklearn. It provides
low-level implementations and custom Python bindings for the LIBSVM
library.
.
This is the Python 2 version.
Package: python3-sklearn-lib
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends},