Trying to build python3 version of scikit-learn, python3-* pkgs come out empty

2014-11-04 Thread Zack Weinberg
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


control
Description: Binary data


rules
Description: Binary data


replacement for ipython(3)-notebook?

2016-11-09 Thread Zack Weinberg
ipython(3)-notebook has been dropped from unstable with the transition
to ipython 5.0.0.  What package now provides this functionality?

zw



What to do when a source package has Python components in a subdir?

2006-06-12 Thread Zack Weinberg

Since Python policy is being revamped just now I thought I'd bring up
a complicated situation that I ran across recently (in packages that
are currently just for private use, but I might try to get them into
Debian eventually).

Consider a source package that builds a shared library, Python
bindings for that library (consisting of both "extensions" and
"modules"), and programs for /usr/bin that are written in Python and
use the library bindings.  Upstream distributes this as one big
tarball with a top-level autoconf-based configure script and Makefile.
The Python bindings are in a subdirectory; Make recurses into that
directory and invokes setup.py there.  Upstream makes no provision for
building the bindings against multiple versions of Python; however,
they work fine with all versions I've tried (2.3 and 2.4).

Policy questions:

* What is the appropriate set of binary packages for this scenario,
and what goes in each?
* What should the /usr/bin programs have on their #! line?  (I assume
/usr/bin/python, i.e. the default version, but explicitness would be
good.)

Packaging practices question:

* What is the best way to code debian/rules for this scenario?  Hack
up the upstream Makefiles to run setup.py repeatedly, or have
debian/rules reach in there and invoke it itself, or what?

Thanks,
zw


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]