Gentoo Archives: gentoo-dev

From: Krzysztof Pawlik <nelchael@g.o>
To: gentoo-dev@l.g.o
Cc: "Andreas K. Huettel" <dilfridge@g.o>
Subject: Re: [gentoo-dev] New eclass for Python
Date: Wed, 29 Feb 2012 21:20:04
Message-Id: 4F4E964A.40509@gentoo.org
In Reply to: Re: [gentoo-dev] New eclass for Python by "Andreas K. Huettel"
1 On 29/02/12 22:08, Andreas K. Huettel wrote:
2 > Am Mittwoch 29 Februar 2012, 21:24:49 schrieb Krzysztof Pawlik:
3 >>> Second, there doesn't seem to be any support for packages that do not
4 >>> install in python's site-packages and do not allow multiple python ABIs.
5 >>> If I have, for example, a package that installs python modules
6 >>> in /usr/lib/appname or /usr/share/appname, how can I specify that
7 >>> PYTHON_TARGETS="python2.6" or "python2.7" or "python3.2" is allowed, but
8 >>> something like PYTHON_TARGETS="python2.7 python3.2" is not?
9 >>
10 >> You're correct, note that I've stressed that this eclass is mainly for
11 >> distutils-based packages. I'm not using Gnome, so can you provide some
12 >> package examples that I can look at?
13 >>
14 >> <personal opinion>
15 >> If package decides to use given language then please, please play by the
16 >> rules set by the rest of world (Ruby -> gems, Python -> distutils, Perl ->
17 >> CPAN, PHP -> PEAR).
18 >>
19 >> I don't like installing Python code outside of site-packages, the only
20 >> exception to that rule is portage (at least for now).
21 >> </personal opinion>
22 >
23 > We will hit the same problem with KDE (actually we already hit it): it has
24 > various types of scripting support, and each installs a KDE library linked to
25 > whatever language interpreter.
26 >
27 > (Now, that library- is it a Python/Ruby library or a KDE library? Because it
28 > is at the proper place for KDE stuff :)
29 >
30 > It's not just about calling an external language but also about embedding the
31 > interpreter for in-app scripting... and KDE rather heavily relies on python.
32
33 I agree with last sentence - it's about embedding Python/Ruby/Foo, *this eclass
34 is about installing packages for Python*. Compiling against an implementation is
35 something completely different -- for example try building against Jython.
36
37 --
38 Krzysztof Pawlik <nelchael at gentoo.org> key id: 0xF6A80E46
39 desktop-misc, java, vim, kernel, python, apache...

Attachments

File name MIME type
signature.asc application/pgp-signature