Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: [gentoo-dev] Re: [gentoo-dev-announce] Changes in python_mod_optimize(), python_mod_cleanup() and python_mod_compile()
Date: Tue, 25 May 2010 20:52:18
Message-Id: 201005252251.10627.Arfrever@gentoo.org
In Reply to: [gentoo-dev] Re: [gentoo-dev-announce] Changes in python_mod_optimize(), python_mod_cleanup() and python_mod_compile() by "Petteri Räty"
1 2010-05-25 21:11:44 Petteri Räty napisał(a):
2 > On 05/25/2010 09:35 PM, Arfrever Frehtes Taifersar Arahesis wrote:
3 > > - Not passing of paths to python_mod_optimize() and python_mod_cleanup() has been
4 > > deprecated and will be disallowed on 2010-09-01. You should pass paths to Python
5 > > modules to these functions.
6 > >
7 > > - python_mod_compile() has been deprecated and will be banned on 2010-09-01.
8 > > You should use python_mod_optimize() instead of python_mod_compile().
9 > >
10 >
11 > 1. Messages to gentoo-dev-announce should also be posted to an on topic
12 > mailing lists
13
14 I don't like crossposting.
15
16 > 2. What does disallowed and banned mean in this case? Plenty of ebuilds
17 > currently pass paths to python_mod_optimize.
18
19 Ebuilds, which pass paths to python_mod_optimize() / python_mod_cleanup(),
20 don't need any changes. Ebuilds, which don't pass paths to python_mod_optimize()
21 or python_mod_cleanup(), should now pass paths to these functions.
22 Only small minority of ebuilds don't pass paths to these functions.
23
24 python_mod_optimize() without paths hasn't been doing anything for almost 2 years.
25 python_mod_cleanup() without paths allows for silently incorrect behavior.
26 Not passing of paths to python_mod_cleanup() is incorrect in many ebuilds.
27
28 > If you break the stable tree, you should have the wrath of more people than me.
29 > It can be done at the dates you say if the tree is in order by then.
30
31 I'm not breaking anything. Deprecation warnings won't be changed into calls to
32 die() until all ebuilds in gentoo-x86 are fixed.
33
34 It's possible to deprecate and ban functions or their parts as it was discussed
35 in "Deprecation of python_version(), python_mod_exists(), python_tkinter_exists(),
36 distutils_python_version() and distutils_python_tkinter() in EAPI <=2" thread [1].
37
38 [1] http://archives.gentoo.org/gentoo-dev/msg_7ad37800b8fa3041662068f70083cb56.xml
39
40 --
41 Arfrever Frehtes Taifersar Arahesis

Attachments

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

Replies