FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-25-2010, 07:11 PM
Petteri Räty
 
Default Changes in python_mod_optimize(), python_mod_cleanup() and python_mod_compile()

On 05/25/2010 09:35 PM, Arfrever Frehtes Taifersar Arahesis wrote:
> - Not passing of paths to python_mod_optimize() and python_mod_cleanup() has been
> deprecated and will be disallowed on 2010-09-01. You should pass paths to Python
> modules to these functions.
>
> - python_mod_compile() has been deprecated and will be banned on 2010-09-01.
> You should use python_mod_optimize() instead of python_mod_compile().
>

1. Messages to gentoo-dev-announce should also be posted to an on topic
mailing lists

2. What does disallowed and banned mean in this case? Plenty of ebuilds
currently pass paths to python_mod_optimize. If you break the stable
tree, you should have the wrath of more people than me. It can be done
at the dates you say if the tree is in order by then.

Regards,
Petteri
 
Old 05-25-2010, 08:49 PM
Arfrever Frehtes Taifersar Arahesis
 
Default Changes in python_mod_optimize(), python_mod_cleanup() and python_mod_compile()

2010-05-25 21:11:44 Petteri Räty napisał(a):
> On 05/25/2010 09:35 PM, Arfrever Frehtes Taifersar Arahesis wrote:
> > - Not passing of paths to python_mod_optimize() and python_mod_cleanup() has been
> > deprecated and will be disallowed on 2010-09-01. You should pass paths to Python
> > modules to these functions.
> >
> > - python_mod_compile() has been deprecated and will be banned on 2010-09-01.
> > You should use python_mod_optimize() instead of python_mod_compile().
> >
>
> 1. Messages to gentoo-dev-announce should also be posted to an on topic
> mailing lists

I don't like crossposting.

> 2. What does disallowed and banned mean in this case? Plenty of ebuilds
> currently pass paths to python_mod_optimize.

Ebuilds, which pass paths to python_mod_optimize() / python_mod_cleanup(),
don't need any changes. Ebuilds, which don't pass paths to python_mod_optimize()
or python_mod_cleanup(), should now pass paths to these functions.
Only small minority of ebuilds don't pass paths to these functions.

python_mod_optimize() without paths hasn't been doing anything for almost 2 years.
python_mod_cleanup() without paths allows for silently incorrect behavior.
Not passing of paths to python_mod_cleanup() is incorrect in many ebuilds.

> If you break the stable tree, you should have the wrath of more people than me.
> It can be done at the dates you say if the tree is in order by then.

I'm not breaking anything. Deprecation warnings won't be changed into calls to
die() until all ebuilds in gentoo-x86 are fixed.

It's possible to deprecate and ban functions or their parts as it was discussed
in "Deprecation of python_version(), python_mod_exists(), python_tkinter_exists(),
distutils_python_version() and distutils_python_tkinter() in EAPI <=2" thread [1].

[1] http://archives.gentoo.org/gentoo-dev/msg_7ad37800b8fa3041662068f70083cb56.xml

--
Arfrever Frehtes Taifersar Arahesis
 

Thread Tools




All times are GMT. The time now is 06:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org