You are not logged in.

#1 2013-10-21 22:37:49

vlsd
Member
Registered: 2013-06-24
Posts: 33
Website

[SOLVED] Why does python2-numpy depend on python3 packages?

Looking at the dependencies for python2-numpy it seems to depend on a bunch of stuff that's for version 3 of python:

https://www.archlinux.org/packages/extr … on2-numpy/

In particular python-nose is an optional dependency but python-nose is a python3 package. The python2 version is, as should be, in python2-nose. It could be a bug, but I figured I'd ask if anyone can think of a good reason for this before reporting.

Last edited by vlsd (2013-10-22 19:38:49)

Offline

#2 2013-10-21 23:09:02

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Why does python2-numpy depend on python3 packages?

pacman -Si python2-numpy
Depends On     : lapack  python2

python2-numpy only depends on lapack and python2 at runtime. The package is built using a split PKGBUILD that also builds python(3)-numpy. The makedeps reported on the webpage are common to both packages. Note the numerous "(make)" tags. The python-nose optdep may be a relic from incomplete parsing of the split PKGBUILD, a limitation of split PKGBUILDs due to the inability to nest optdeps, or maybe it is invoked externally from python2-numpy (I have no idea).

There are many different ways a package can depend on another.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2013-10-22 15:56:33

vlsd
Member
Registered: 2013-06-24
Posts: 33
Website

Re: [SOLVED] Why does python2-numpy depend on python3 packages?

Ok, so the fact that the build for python2-numpy depends on python-nose instead of python2-nose is likely a bug and I should report it, but everything else is normal. Thanks!

Last edited by vlsd (2013-10-22 15:56:56)

Offline

#4 2013-10-22 17:20:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Why does python2-numpy depend on python3 packages?

vlsd wrote:

Ok, so the fact that the build for python2-numpy depends on python-nose instead of python2-nose is likely a bug and I should report it, but everything else is normal. Thanks!

No, I think you completely misunderstood. First thing to note is that python2-numpy does NOT depend on python-nose. There is an optdepend on it, but it's just that, optional. Do you know for sure that the python2-numpy testsuite doesn't require python3?

Offline

#5 2013-10-22 19:25:18

vlsd
Member
Registered: 2013-06-24
Posts: 33
Website

Re: [SOLVED] Why does python2-numpy depend on python3 packages?

Scimmia wrote:

Do you know for sure that the python2-numpy testsuite doesn't require python3?

Well, given that the test suite is part of numpy and is called from inside python2 I would be *very* surprised if it depended on python3. It would require importing python3-nose with a python2 interpreter, something that is, to the extent of my knowledge, not possible.

I also just tested this on my system and numpy in python2 doesn't run the tests if python-nose is installed but python2-nose is not, which makes me 100% confident the dependency is wrong.

Offline

Board footer

Powered by FluxBB