Gentoo Archives: gentoo-dev

From: hasufell <hasufell@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Initial python-r1.eclass & distutils-r1.eclass
Date: Thu, 25 Oct 2012 19:20:24
Message-Id: 508990C9.3010708@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] Initial python-r1.eclass & distutils-r1.eclass by hasufell
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 10/25/2012 06:41 PM, hasufell wrote:
5 > 1. there is still no way to convert shebangs via python-r1 2. there
6 > are no equivalent functions to the python_get_* stuff which are
7 > sometimes necessary for broken build systems or test phases 3.
8 > there is no equivalent for python_mod_optimize. Having that in
9 > distutils-r1 does not suffice for non-distutils packages where I
10 > might have to do that stuff manually. 5.
11 > distutils-r1_rename_scripts does not allow to specify a location
12 > possibly breaking non-standard locations (e.g. games location) 6.
13 > How can I make the python dependencies optional, e.g. that
14 > python:3.2 is only pulled in when gtk useflag for this package is
15 > set? 7. are we sure now that it's safe to ship the .pyc/.pyo files
16 > inside the package without side-effects? 8. how would I manually
17 > generate implementation-suffixed scripts without distutils-r1?
18 > example: x11-misc/redshift-1.7-r1
19 >
20
21 4. no equivalent to python_set_active_version
22
23 feature request: let the ebuild developer choose a python
24 implementation for the whole emerge process.
25
26 usecase: packages not using distutils and not supporting multiple
27 python abis, but detecting installed python in some way and working
28 with all python:2.* slots.
29
30 examples that come to my mind right now:
31 games-strategy/freeorion
32 games-action/openclonk
33 net-im/pidgin
34 app-office/libreoffice
35
36 python_foreach_impl cannot fit that
37 -----BEGIN PGP SIGNATURE-----
38 Version: GnuPG v2.0.19 (GNU/Linux)
39 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
40
41 iQEcBAEBAgAGBQJQiZDJAAoJEFpvPKfnPDWzwaIIAKAIlQlrtxWL3gPbUZqR/XKA
42 H/tov9nk+yb9VoqB8Hn4k0gZ1ZicGNgPIqY777/eJ2G/F9IdT8866Lztq4lWyno8
43 r9LZMsesNnXxZDnDLgbIyt1DXm9ddmiC3bTi3iCpgQ54sats+icgcsZ40ya/9+k5
44 ouZCxnxBI7LhgWPKmtloZC2Rundcgoxk7K5le37O6P6nhH5HPI8vdXtnUmNDJ/oY
45 ryb6VD1hkSnkY/pcIQ7MVUspGqw45LN/INhQAMvakla4y1r9pa12rsKgMAKnoYv6
46 LjhWtXLJEeYx+crJvLoHjdrXBX6TS8JhBc3BOVgtU1LzccDqEkqPOoLBLHUx7Tw=
47 =D5Ee
48 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] [RFC] Initial python-r1.eclass & distutils-r1.eclass "Michał Górny" <mgorny@g.o>