Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Installing python library to multiple Python slots - Possible??
Date: Tue, 15 Jul 2008 09:38:28
Message-Id: 20080715093826.GE24684@gentoo.org
In Reply to: [gentoo-alt] Installing python library to multiple Python slots - Possible?? by Derek Harland
1 On 15-07-2008 18:25:41 +1200, Derek Harland wrote:
2 > I've googled quite a bit but haven't been able to find any information on
3 > how I might emerge a python library (such as numpy, egenix, basically
4 > anything in dev-python/*) for *both* python2.5 and python2.4.
5
6 My knowledge fails here. You'd have to get a hold of Gentoo's Python
7 team and ask this to them, sorry.
8
9
10 > As one approach I've hacked the distutils.eclass to allow passing
11 > PYTHON_SLOT_VERSION="2.4"
12 >
13 > $ diff -u ~/gentoo/usr/portage/eclass/distutils.eclass{.orig,}
14 > --- ~/gentoo/usr/portage/eclass/distutils.eclass.orig
15 > 2008-06-29 02:41:55 +1200
16 > +++ ~/gentoo/usr/portage/eclass/distutils.eclass 2008-07-15
17 > 16:48:10 +1200
18 > @@ -27,6 +27,9 @@
19 > elif [ "${PYTHON_SLOT_VERSION}" = "2.3" ] ; then
20 > DEPEND="=dev-lang/python-2.3*"
21 > python="python2.3"
22 > +elif [ "${PYTHON_SLOT_VERSION}" = "2.4" ] ; then
23 > + DEPEND="=dev-lang/python-2.4*"
24 > + python="python2.4"
25 > else
26 > DEPEND="virtual/python"
27 > python="python"
28 >
29 > but this doesn't really work as eg
30 >
31 > PYTHON_SLOT_VERSION}" = "2.4" emerge egenix-mx-base
32 >
33 > installs the module to the correct python-2.4/site-packages but removes
34 > it from python-2.5/site-packages on the way ...
35 >
36 > Anyone with any pointers on how Gentoo might support installing a python
37 > library (eg numpy, egenix etc) to multiple python slots??
38
39
40 --
41 Fabian Groffen
42 Gentoo on a different level
43 --
44 gentoo-alt@l.g.o mailing list

Replies