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 02-08-2010, 11:29 AM
Arfrever Frehtes Taifersar Arahesis
 
Default Python-3.2-related changes

2010-02-06 17:54:10 Mark Loeser napisał(a):
> Arfrever Frehtes Taifersar Arahesis <Arfrever@gentoo.org> said:
> > 2010-02-05 17:40:00 Arfrever Frehtes Taifersar Arahesis napisał(a):
> > > I consider filing bugs for not adjusted packages after some months (e.g in summer).
> >
> > 1123 packages (440 in dev-python category) from 108 categories specify dev-lang/python
> > or virtual/python in DEPEND or RDEPEND, so actually it might be better to start filing
> > bugs in this month. If there are no objections, then I would like to file 1 bug per
> > category (except dev-python category).
>
> Make trackers and make one bug per package. Its way too hard to follow
> a huge metabug with a bunch of packages listed in it.

Average number of non-dev-python packages handled in 1 bug would be only 6.4, but I can
create create 1 bug per package, if you still want it.

> Also, I think the concerns and suggestions that were brought up about the syntax
> of this new variable should be addressed first and not ignored.

I will include examples in documentation of PYTHON_DEPEND to avoid misunderstanding of
syntax of this variable.

--
Arfrever Frehtes Taifersar Arahesis
 
Old 02-08-2010, 03:06 PM
Arfrever Frehtes Taifersar Arahesis
 
Default Python-3.2-related changes

2010-02-06 13:14:41 Brian Harring napisał(a):
> On Sat, Feb 06, 2010 at 12:03:11PM +0100, Arfrever Frehtes Taifersar Arahesis wrote:
> > 2010-02-05 17:40:00 Arfrever Frehtes Taifersar Arahesis napisał(a):
> > > - Dependency on Python 2 should be set correctly. You can specify it directly in
> > > {,R}DEPEND or use PYTHON_DEPEND.
> > >
> > > Example:
> > > PYTHON_DEPEND="2"
> > >
> > > inherit python
> >
> > It might be useful to provide another example:
> > If given package requires e.g. Python >=2.6, but does not support Python 3, then you can
> > set PYTHON_DEPEND="2:2.6".
>
> We really need better syntax than that. Particular reason you're
> jamming py2k and py3k all into one? Breaking it down into
> PYTHON2K_DEPEND and PYTHON3K_DEPEND

There's no need for 2 variables when 1 variable is sufficient.

> would involve lest magic in parsing

At least I was able to exercise my bash skills and find a bug in bash .

--
Arfrever Frehtes Taifersar Arahesis
 
Old 02-09-2010, 07:10 AM
Thilo Bangert
 
Default Python-3.2-related changes

Arfrever Frehtes Taifersar Arahesis <Arfrever@gentoo.org> said:
> 2010-02-06 17:54:10 Mark Loeser napisał(a):
> > Arfrever Frehtes Taifersar Arahesis <Arfrever@gentoo.org> said:
> > > 2010-02-05 17:40:00 Arfrever Frehtes Taifersar Arahesis napisał(a):
> > > > I consider filing bugs for not adjusted packages after some
> > > > months (e.g in summer).
> > >
> > > 1123 packages (440 in dev-python category) from 108 categories
> > > specify dev-lang/python or virtual/python in DEPEND or RDEPEND, so
> > > actually it might be better to start filing bugs in this month. If
> > > there are no objections, then I would like to file 1 bug per
> > > category (except dev-python category).
> >
> > Make trackers and make one bug per package. Its way too hard to
> > follow a huge metabug with a bunch of packages listed in it.
>
> Average number of non-dev-python packages handled in 1 bug would be
> only 6.4, but I can create create 1 bug per package, if you still want
> it.

having done mass-filings with one bug per package in the past i know how
tedious these are. nevertheless, 1 package per bug it must be - it makes
all kinds of stuff way easier (think of retirements).

good luck and thanks.
Thilo
 
Old 02-09-2010, 10:14 AM
Duncan
 
Default Python-3.2-related changes

Thilo Bangert posted on Tue, 09 Feb 2010 09:10:26 +0100 as excerpted:

> having done mass-filings with one bug per package in the past i know how
> tedious these are. nevertheless, 1 package per bug it must be - it
> makes all kinds of stuff way easier (think of retirements).

What about borrowing the boilerplate scripts flameeyes uses for his
apparently almost totally automated tinderbox bugs? Change the various
strings as appropriate, plugin a list of packages with the problem, and
away you go! =:^)

--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
 
Old 03-01-2010, 02:13 AM
Arfrever Frehtes Taifersar Arahesis
 
Default Python-3.2-related changes

Arfrever Frehtes Taifersar Arahesis
2010-02-05 17:40:00 napisał(a):
> The following changes should be made in ebuilds of packages supporting only Python 2:
> - Dependency on Python 2 should be set correctly. You can specify it directly in
> {,R}DEPEND or use PYTHON_DEPEND.
>
> Example:
> PYTHON_DEPEND="2"
>
> inherit python
>
> - Miscellaneous actions should be executed with correct version of Python.
>
> - In ebuilds of packages supporting installation for multiple versions of Python,
> please remember to disable installation for all versions of Python 3.
> (Please do not use python_set_active_version() in ebuilds of these packages.)
>
> Example:
> RESTRICT_PYTHON_ABIS="3.*"
>
> - In ebuilds of packages not supporting installation for multiple versions of Python,
> set active version of Python using python_set_active_version().
> (Please avoid passing precisely specified Python ABI to python_set_active_version().)
>
> Example:
> pkg_setup() {
> python_set_active_version 2
> }
>
> (If given package currently cannot be installed for multiple versions of Python,
> but it is theoretically possible (e.g. this package installs .py files into
> /usr/lib/pythonX.Y/site-packages and does not install any non-versioned libraries
> into /usr/lib), then please try to adjust ebuilds of this package to allow
> installation for multiple versions of Python.)

I forgot about 2 other types of changes:
- Shebangs in installed scripts should be correct. If build system installs scripts
with too generic shebangs (e.g. '#!/usr/bin/python'), then you can use
python_convert_shebangs() to convert shebangs.

Example:
src_install() {
...

python_convert_shebangs -r 2 "${D}usr/bin"
}

(Please note that wrapper scripts generated by python_generate_wrapper_scripts() work
with all versions of Python from 2.4 to 3.2, so shebangs in these scripts do not need
any changes.)

- Some deprecated functions (python_version(), distutils_python_version()) and variables
(${python}, ${PYVER} etc.) should not be used.

Documentation [1] has been updated.

I will start filing bugs maybe in this week.

[1] http://www.gentoo.org/proj/en/Python/developersguide.xml

--
Arfrever Frehtes Taifersar Arahesis
 
Old 03-01-2010, 04:13 AM
Max Arnold
 
Default Python-3.2-related changes

On Mon, Mar 01, 2010 at 04:13:10AM +0100, Arfrever Frehtes Taifersar Arahesis wrote:
> (Please note that wrapper scripts generated by python_generate_wrapper_scripts() work
> with all versions of Python from 2.4 to 3.2, so shebangs in these scripts do not need
> any changes.)

What is the recommended policy about using or not using wrapper scripts? Maybe it also should
be documented?

> [1] http://www.gentoo.org/proj/en/Python/developersguide.xml

What about merging (or at least linking) this documentation with Gentoo Development Guide? The
latter one already contains distutils related chapter and probably it is a good idea to decribe
python.eclass usage in another chapter or eclass reference.
 
Old 03-01-2010, 10:06 PM
Arfrever Frehtes Taifersar Arahesis
 
Default Python-3.2-related changes

2010-03-01 06:13:19 Max Arnold napisał(a):
> On Mon, Mar 01, 2010 at 04:13:10AM +0100, Arfrever Frehtes Taifersar Arahesis wrote:
> > (Please note that wrapper scripts generated by python_generate_wrapper_scripts() work
> > with all versions of Python from 2.4 to 3.2, so shebangs in these scripts do not need
> > any changes.)
>
> What is the recommended policy about using or not using wrapper scripts?

They are to solve collisions between scripts installed with different Python versions,
not to support Python 3.

> Maybe it also should be documented?

I will document it.

> > [1] http://www.gentoo.org/proj/en/Python/developersguide.xml
>
> What about merging (or at least linking) this documentation with Gentoo Development Guide? The
> latter one already contains distutils related chapter and probably it is a good idea to decribe
> python.eclass usage in another chapter or eclass reference.

It's better to maintain our documentation separately. Gentoo Development Guide can
contain URL to http://www.gentoo.org/proj/en/Python/developersguide.xml.

--
Arfrever Frehtes Taifersar Arahesis
 

Thread Tools




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

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