1 |
I've googled quite a bit but haven't been able to find any |
2 |
information on how I might emerge a python library (such as numpy, |
3 |
egenix, basically anything in dev-python/*) for *both* python2.5 and |
4 |
python2.4. |
5 |
|
6 |
As one approach I've hacked the distutils.eclass to allow passing |
7 |
PYTHON_SLOT_VERSION="2.4" |
8 |
|
9 |
$ diff -u ~/gentoo/usr/portage/eclass/distutils.eclass{.orig,} |
10 |
--- ~/gentoo/usr/portage/eclass/distutils.eclass.orig |
11 |
2008-06-29 02:41:55 +1200 |
12 |
+++ ~/gentoo/usr/portage/eclass/distutils.eclass 2008-07-15 |
13 |
16:48:10 +1200 |
14 |
@@ -27,6 +27,9 @@ |
15 |
elif [ "${PYTHON_SLOT_VERSION}" = "2.3" ] ; then |
16 |
DEPEND="=dev-lang/python-2.3*" |
17 |
python="python2.3" |
18 |
+elif [ "${PYTHON_SLOT_VERSION}" = "2.4" ] ; then |
19 |
+ DEPEND="=dev-lang/python-2.4*" |
20 |
+ python="python2.4" |
21 |
else |
22 |
DEPEND="virtual/python" |
23 |
python="python" |
24 |
|
25 |
but this doesn't really work as eg |
26 |
|
27 |
PYTHON_SLOT_VERSION}" = "2.4" emerge egenix-mx-base |
28 |
|
29 |
installs the module to the correct python-2.4/site-packages but |
30 |
removes it from python-2.5/site-packages on the way ... |
31 |
|
32 |
Anyone with any pointers on how Gentoo might support installing a |
33 |
python library (eg numpy, egenix etc) to multiple python slots?? |
34 |
|
35 |
des. |
36 |
|
37 |
On 15/07/2008, at 12:05 AM, Fabian Groffen wrote: |
38 |
|
39 |
> On 14-07-2008 18:40:02 +1200, Derek Harland wrote: |
40 |
>> My organisation has a fairly large production code base running off |
41 |
>> python 2.4 (on solaris/linux) --- we haven't made the transition |
42 |
>> to 2.5 |
43 |
>> except in various development projects which means it would be |
44 |
>> ideal to |
45 |
>> be able to have both 2.4 and 2.5 coexisting (and the 3.0 alphas ...) |
46 |
> |
47 |
> You're not the first to ask for Python 2.4, so I decided to go through |
48 |
> the hassle of adding it back. It compiles and runs on at least on OSX |
49 |
> 10.4.11. |
50 |
> |
51 |
> |
52 |
> -- |
53 |
> Fabian Groffen |
54 |
> Gentoo on a different level |
55 |
> -- |
56 |
> gentoo-alt@l.g.o mailing list |
57 |
> |
58 |
|
59 |
-- |
60 |
gentoo-alt@l.g.o mailing list |