[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh-python in unstable



This left me puzzling for a bit:

$> sudo apt-get install dh-python
...
The following packages have unmet dependencies:
 dh-python : Depends: python3 (>= 3.2.3-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$> apt-cache policy python3 
python3:
  Installed: 3.2.3-7
  Candidate: 3.3.2-3
  Version table:
     3.3.2-11 0
        300 http://debian.lcs.mit.edu/debian/ experimental/main amd64 Packages
     3.3.2-4 0
        600 http://debian.lcs.mit.edu/debian/ sid/main amd64 Packages
     3.3.2-3 0
        900 http://debian.lcs.mit.edu/debian/ jessie/main amd64 Packages
 *** 3.2.3-7 0
        100 /var/lib/dpkg/status
     3.2.3-6 0
        100 http://debian.lcs.mit.edu/debian/ wheezy/main amd64 Packages

$> dpkg --compare-versions 3.2.3-3~ lt 3.2.3-7 && echo "yes - yarik is sane" || echo "go to the doctor"
yes - yarik is sane

Until I have looked at apt-cache show:

Replaces: python3 (<< 3.3.2-10~)
Depends: python3 (>= 3.2.3-3~)
Breaks: python3 (<< 3.3.2-10~)

Probably it is also worth complaining against apt regarding the message,
but may be Depends here could/should be boosted to the same version of python3?

Do you think it would be feasible to have a backport of dh-python e.g. for
wheezy with corresponding diverts avoiding conflicts here or indeed python3 (>=
3.2.3-3~) is required for some functionality (haven't looked inside)?

On Fri, 02 Aug 2013, Piotr Ożarowski wrote:

> dh-python is already in unstable \o/

> To build/install python3-foo or pypy-foo binary packages,
> you can use this in debian/rules:

> 	%:
> 		dh $@ --with python2,python3,pypy --buildsystem=pybuild

> or if you don't want to play with .install files:

> 	export PYBUILD_DESTDIR_python2=debian/python-foo/
> 	export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
> 	export PYBUILD_DESTDIR_python3=debian/python3-foo/
> 	export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
> 	export PYBUILD_DESTDIR_pypy=debian/pypy-foo/

> 	%:
> 		dh $@ --with python2,python3,pypy --buildsystem=pybuild

> See pybuild(1) and dh_pypy(1) for more info.
> Note that adding dh-python to Build-Depends enables multiarch support in dh_python2
-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate,     Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


Reply to: