Joanmarie Diggs | 22 Jun 2012 18:30
Favicon
Gravatar

Python version and jhbuild

Hey all.

Migrating Orca to Python 3 has been on the to-do list for a while now.
Upon being told that Ubuntu was hoping to have its next release be all
Python 3 (at least for their live CD), I decided to go ahead and do it.
That work has been committed to master. Furthermore, the Accessibility
Team felt that this was worth doing for all its modules. As a result,
pyatspi2 is now Python 3 compatible and Accerciser's migration is
underway (just waiting for the code review).

This change, unfortunately, makes jhbuild unhappy when building Orca
(and later Accerciser) in an environment which lacks Python 3 versions
of the build dependencies. I was hoping it would be relatively
straightforward to adjust jhbuild to handle this new situation. But the
solution didn't jump out at me, so I asked in #release-team because I
didn't want to make their lives unpleasant during next week's release.
What I was told by Walters is:

" ... anyways we don't have a way in jhbuild to express a dependency on
python3 that i'm aware of (jhbuild has always just been an out of date
snapshot of some of the dependencies of a given component)."

And Matthias said I should ask here. :)

Ideas?

Thanks!
--joanie
Martin Pitt | 25 Jun 2012 07:54
Favicon
Gravatar

Re: Python version and jhbuild

Hello Joanmarie,

Joanmarie Diggs [2012-06-22 12:30 -0400]:
> This change, unfortunately, makes jhbuild unhappy when building Orca
> (and later Accerciser) in an environment which lacks Python 3 versions
> of the build dependencies. I was hoping it would be relatively
> straightforward to adjust jhbuild to handle this new situation. But the
> solution didn't jump out at me, so I asked in #release-team because I
> didn't want to make their lives unpleasant during next week's release.

You can put

  os.environ['PYTHON'] = 'python3'

into your ~/.jhbuildrc configuration, then clean up your pygobject
git checkout with

  git clean -fdx

and then rebuild it

  jhbuild buildone pygobject

Then your jhbuild install will have the Python 3 version of pygobject.

Note that this will not clean up the old 2.x version, so if you want
to make sure that this is gone, remove lib/python2.7/ from your
jhbuild install tree.

Martin
(Continue reading)

Jasper St. Pierre | 25 Jun 2012 07:58
Gravatar

Re: Python version and jhbuild

On Mon, Jun 25, 2012 at 1:54 AM, Martin Pitt <martin.pitt <at> ubuntu.com> wrote:
> Hello Joanmarie,
>
> Joanmarie Diggs [2012-06-22 12:30 -0400]:
>> This change, unfortunately, makes jhbuild unhappy when building Orca
>> (and later Accerciser) in an environment which lacks Python 3 versions
>> of the build dependencies. I was hoping it would be relatively
>> straightforward to adjust jhbuild to handle this new situation. But the
>> solution didn't jump out at me, so I asked in #release-team because I
>> didn't want to make their lives unpleasant during next week's release.
>
> You can put
>
>  os.environ['PYTHON'] = 'python3'
>
> into your ~/.jhbuildrc configuration, then clean up your pygobject
> git checkout with
>
>  git clean -fdx
>
> and then rebuild it
>
>  jhbuild buildone pygobject
>
> Then your jhbuild install will have the Python 3 version of pygobject.
>
> Note that this will not clean up the old 2.x version, so if you want
> to make sure that this is gone, remove lib/python2.7/ from your
> jhbuild install tree.

(Continue reading)

Joanmarie Diggs | 25 Jun 2012 11:46
Favicon
Gravatar

Re: Python version and jhbuild

Hey Martin.

On 06/25/2012 01:54 AM, Martin Pitt wrote:
> Hello Joanmarie,
> 
> Joanmarie Diggs [2012-06-22 12:30 -0400]:
>> This change, unfortunately, makes jhbuild unhappy when building Orca
>> (and later Accerciser) in an environment which lacks Python 3 versions
>> of the build dependencies. I was hoping it would be relatively
>> straightforward to adjust jhbuild to handle this new situation. But the
>> solution didn't jump out at me, so I asked in #release-team because I
>> didn't want to make their lives unpleasant during next week's release.
> 
> You can put
> 
>   os.environ['PYTHON'] = 'python3'

The thing I am trying to accomplish is not being one of "those modules"
that makes it impossible to do a complete jhbuild without lots of
fiddling. Not so much for myself (I can build Orca just fine), but for
everyone wishing to do a 'jhbuild build' and wander off for a sandwich.

Right now I am one of "those modules." :( And merely changing one's
environment over to Python 3 doesn't work because other modules are not
Python 3 ready.

So unless I'm missing something (which could easily be the case), I
think we either need a jhbuild which has additional smarts to handle
this situation or for all core modules which use Python to migrate to
Python 3. (New GNOME Goal?)
(Continue reading)

Martin Pitt | 25 Jun 2012 12:11
Favicon
Gravatar

Re: Python version and jhbuild

Joanmarie Diggs [2012-06-25  5:46 -0400]:
> So unless I'm missing something (which could easily be the case), I
> think we either need a jhbuild which has additional smarts to handle
> this situation

You can set it for pygobject only, by doing this instead:

  module_extra_env['pygobject'] = {'PYTHON': 'python3'}

Then other modules like glib will not see this, and thus not fail.

Martin
--

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
Matthias Clasen | 25 Jun 2012 14:48
Picon

Re: Python version and jhbuild

On Fri, Jun 22, 2012 at 12:30 PM, Joanmarie Diggs <jdiggs <at> igalia.com> wrote:
> Hey all.
>
> Migrating Orca to Python 3 has been on the to-do list for a while now.
> Upon being told that Ubuntu was hoping to have its next release be all
> Python 3 (at least for their live CD), I decided to go ahead and do it.
> That work has been committed to master. Furthermore, the Accessibility
> Team felt that this was worth doing for all its modules. As a result,
> pyatspi2 is now Python 3 compatible and Accerciser's migration is
> underway (just waiting for the code review).
>
> This change, unfortunately, makes jhbuild unhappy when building Orca
> (and later Accerciser) in an environment which lacks Python 3 versions
> of the build dependencies. I was hoping it would be relatively
> straightforward to adjust jhbuild to handle this new situation. But the
> solution didn't jump out at me, so I asked in #release-team because I
> didn't want to make their lives unpleasant during next week's release.
> What I was told by Walters is:
>
> " ... anyways we don't have a way in jhbuild to express a dependency on
> python3 that i'm aware of (jhbuild has always just been an out of date
> snapshot of some of the dependencies of a given component)."
>
> And Matthias said I should ask here. :)
>
> Ideas?
>

So, after giving this a weekend, I don't think we can do a python 2->3
transition for 3.6 without some advance planning.
(Continue reading)

Joanmarie Diggs | 25 Jun 2012 14:50
Favicon
Gravatar

Re: Python version and jhbuild

On 06/25/2012 08:48 AM, Matthias Clasen wrote:
> On Fri, Jun 22, 2012 at 12:30 PM, Joanmarie Diggs <jdiggs <at> igalia.com> wrote:
>> Hey all.
>>
>> Migrating Orca to Python 3 has been on the to-do list for a while now.
>> Upon being told that Ubuntu was hoping to have its next release be all
>> Python 3 (at least for their live CD), I decided to go ahead and do it.
>> That work has been committed to master. Furthermore, the Accessibility
>> Team felt that this was worth doing for all its modules. As a result,
>> pyatspi2 is now Python 3 compatible and Accerciser's migration is
>> underway (just waiting for the code review).
>>
>> This change, unfortunately, makes jhbuild unhappy when building Orca
>> (and later Accerciser) in an environment which lacks Python 3 versions
>> of the build dependencies. I was hoping it would be relatively
>> straightforward to adjust jhbuild to handle this new situation. But the
>> solution didn't jump out at me, so I asked in #release-team because I
>> didn't want to make their lives unpleasant during next week's release.
>> What I was told by Walters is:
>>
>> " ... anyways we don't have a way in jhbuild to express a dependency on
>> python3 that i'm aware of (jhbuild has always just been an out of date
>> snapshot of some of the dependencies of a given component)."
>>
>> And Matthias said I should ask here. :)
>>
>> Ideas?
>>
> 
> So, after giving this a weekend, I don't think we can do a python 2->3
(Continue reading)

Matthias Clasen | 25 Jun 2012 15:00
Picon

Re: Python version and jhbuild

On Mon, Jun 25, 2012 at 8:50 AM, Joanmarie Diggs <jdiggs <at> igalia.com> wrote:

>
> So are you saying I need to revert back to Python 2?
>

I'm just stating my opinion here for now.
I think this is a decision the release team has to make.

Here is some input for the discussion:
http://people.gnome.org/~fpeters/reports/python3.html
Joanmarie Diggs | 25 Jun 2012 15:38
Favicon
Gravatar

Re: Python version and jhbuild

On 06/25/2012 08:50 AM, Joanmarie Diggs wrote:
> On 06/25/2012 08:48 AM, Matthias Clasen wrote:

[...]

>> So, after giving this a weekend, I don't think we can do a python 2->3
>> transition for 3.6 without some advance planning.
>> And having both python2 and python3 dependencies in the core GNOME
>> moduleset is a non-starter.
>>
> 
> So are you saying I need to revert back to Python 2?

So to wrap up this discussion.... The conclusion reached within
#release-team is:

1. Orca's 3.5/3.6 branch will be based on Python 2.

2. Orca's master branch will continue to be based on Python 3.

3. I will definitely keep these branches in sync (shouldn't be too
   hard) and will likely do releases from both depending on what I
   hear from the Ubuntu folks.

4. I will propose a GNOME Goal for 3.8 regarding everyone migrating to
   Python 3.

Sorry for the noise.

--joanie
(Continue reading)

Emmanuele Bassi | 25 Jun 2012 15:42
Picon
Gravatar

Re: Python version and jhbuild

hi Joanie;

On 25 June 2012 14:38, Joanmarie Diggs <jdiggs <at> igalia.com> wrote:
> 4. I will propose a GNOME Goal for 3.8 regarding everyone migrating to
>   Python 3.

this means dropping the current pygtk bindings from the moduleset,
given that porting to Python 3 was dropped due to resources. not
objecting in any way - I think it's time we dropped pygtk - but it
should probably be checked with the parts of the platform that still
use Python.

ciao,
 Emmanuele.

--

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list <at> gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list
Jasper St. Pierre | 25 Jun 2012 15:44
Gravatar

Re: Python version and jhbuild

On Mon, Jun 25, 2012 at 9:42 AM, Emmanuele Bassi <ebassi <at> gmail.com> wrote:
> hi Joanie;
>
> On 25 June 2012 14:38, Joanmarie Diggs <jdiggs <at> igalia.com> wrote:
>> 4. I will propose a GNOME Goal for 3.8 regarding everyone migrating to
>>   Python 3.
>
> this means dropping the current pygtk bindings from the moduleset,
> given that porting to Python 3 was dropped due to resources. not
> objecting in any way - I think it's time we dropped pygtk - but it
> should probably be checked with the parts of the platform that still
> use Python.

We should drop PyGTK+ even if we don't port to Python 3.

> ciao,
>  Emmanuele.
>
> --
> W: http://www.emmanuelebassi.name
> B: http://blogs.gnome.org/ebassi/
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list <at> gnome.org
> https://mail.gnome.org/mailman/listinfo/desktop-devel-list

--

-- 
  Jasper
Javier Jardón | 28 Jun 2012 00:03
Picon
Gravatar

Re: Python version and jhbuild

On 25 June 2012 22:42, Emmanuele Bassi <ebassi <at> gmail.com> wrote:
> hi Joanie;
>
> On 25 June 2012 14:38, Joanmarie Diggs <jdiggs <at> igalia.com> wrote:
>> 4. I will propose a GNOME Goal for 3.8 regarding everyone migrating to
>>   Python 3.
>
> this means dropping the current pygtk bindings from the moduleset,
> given that porting to Python 3 was dropped due to resources. not
> objecting in any way - I think it's time we dropped pygtk - but it
> should probably be checked with the parts of the platform that still
> use Python.

Hi Emmanuele,

we dropped pygtk at the beggining of the year ;) See [1]

[1] http://git.gnome.org/browse/jhbuild/commit/?id=85acd03623e965f6abdc05be32170dd74d1ef0f1

--

-- 
Javier Jardón Cabezas
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list <at> gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list
Emmanuele Bassi | 28 Jun 2012 01:05
Picon
Gravatar

Re: Python version and jhbuild

hi Javier;

On 27 June 2012 23:03, Javier Jardón <jjardon <at> gnome.org> wrote:
> we dropped pygtk at the beggining of the year ;) See [1]
>
> [1] http://git.gnome.org/browse/jhbuild/commit/?id=85acd03623e965f6abdc05be32170dd74d1ef0f1

good to see that; I thought we still had pygtk because the various
GnomeGoals and moduleset reports still list it. *hint* *hint* ;-)

ciao,
 Emmanuele.

--

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list <at> gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list

Gmane