public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
@ 2012-05-13 20:27 Mike Gilbert
  2012-05-13 21:04 ` Zac Medico
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Mike Gilbert @ 2012-05-13 20:27 UTC (permalink / raw
  To: Gentoo Dev, Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 524 bytes --]

To make ebuilds utilizing python-distutils-ng.eclass usable
"out-of-the-box", the python team would like to add the following to
make.defaults in the base profile.

PYTHON_TARGETS="python2_7"

See also bug 415575 [1].

Any objections?

I would also like to include python3_2, but I do not think this will be
possible due to dev-lang/python:3.2 not being stabilized on several
arches. Perhaps this could be set in arch-specific profiles? Would that
work?

[1] https://bugs.gentoo.org/show_bug.cgi?id=415575


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-13 20:27 [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile Mike Gilbert
@ 2012-05-13 21:04 ` Zac Medico
  2012-05-14  5:23 ` Hans de Graaff
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Zac Medico @ 2012-05-13 21:04 UTC (permalink / raw
  To: gentoo-dev; +Cc: Mike Gilbert, Gentoo Python Project

On 05/13/2012 01:27 PM, Mike Gilbert wrote:
> To make ebuilds utilizing python-distutils-ng.eclass usable
> "out-of-the-box", the python team would like to add the following to
> make.defaults in the base profile.
> 
> PYTHON_TARGETS="python2_7"
> 
> See also bug 415575 [1].
> 
> Any objections?
> 
> I would also like to include python3_2, but I do not think this will be
> possible due to dev-lang/python:3.2 not being stabilized on several
> arches. Perhaps this could be set in arch-specific profiles? Would that
> work?

The thing is, on "stable" archs, we've got both stable and unstable
users on any given profile. So, eventually it seems like we'll want
something like a use.stable file in order to teak the default
python_targets_* flags for stable users, as suggested here:

https://bugs.gentoo.org/show_bug.cgi?id=415575#c5
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-13 20:27 [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile Mike Gilbert
  2012-05-13 21:04 ` Zac Medico
@ 2012-05-14  5:23 ` Hans de Graaff
  2012-05-14  6:50   ` Michał Górny
       [not found] ` <CAB9SyzSJ7ge5gQJ6vAoVf+VFaNPhVuc4B_YEGov5oJiii6gVAQ@mail.gmail.com>
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Hans de Graaff @ 2012-05-14  5:23 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

On Sun, 2012-05-13 at 16:27 -0400, Mike Gilbert wrote:
> To make ebuilds utilizing python-distutils-ng.eclass usable
> "out-of-the-box", the python team would like to add the following to
> make.defaults in the base profile.
> 
> PYTHON_TARGETS="python2_7"
> 
> See also bug 415575 [1].

I think this should have been done when the eclass was first committed.
When there is no default setting people will have to set something
themselves and it becomes much harder for the python team to provide a
smooth upgrade path by adding in new preferred targets later on.

> I would also like to include python3_2, but I do not think this will be
> possible due to dev-lang/python:3.2 not being stabilized on several
> arches. Perhaps this could be set in arch-specific profiles? Would that
> work?

Yes, arch-specific profiles would work, we do the same for ruby where
jruby and ree18 are only available on a few arches.

Hans

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-14  5:23 ` Hans de Graaff
@ 2012-05-14  6:50   ` Michał Górny
  0 siblings, 0 replies; 13+ messages in thread
From: Michał Górny @ 2012-05-14  6:50 UTC (permalink / raw
  To: gentoo-dev; +Cc: graaff

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

On Mon, 14 May 2012 07:23:35 +0200
Hans de Graaff <graaff@gentoo.org> wrote:

> On Sun, 2012-05-13 at 16:27 -0400, Mike Gilbert wrote:
> > To make ebuilds utilizing python-distutils-ng.eclass usable
> > "out-of-the-box", the python team would like to add the following to
> > make.defaults in the base profile.
> > 
> > PYTHON_TARGETS="python2_7"
> > 
> > See also bug 415575 [1].
> 
> I think this should have been done when the eclass was first
> committed. When there is no default setting people will have to set
> something themselves and it becomes much harder for the python team
> to provide a smooth upgrade path by adding in new preferred targets
> later on.

Yes, in particular the person who opened my bug has interpreted
the 'any-of' message as 'set to "python2_6 python2_7"'...

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
       [not found] ` <CAB9SyzSJ7ge5gQJ6vAoVf+VFaNPhVuc4B_YEGov5oJiii6gVAQ@mail.gmail.com>
@ 2012-05-14 15:09   ` Mike Gilbert
  2012-05-14 15:17     ` Pacho Ramos
  0 siblings, 1 reply; 13+ messages in thread
From: Mike Gilbert @ 2012-05-14 15:09 UTC (permalink / raw
  To: gentoo-dev; +Cc: Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 1441 bytes --]

On 5/14/2012 12:50 AM, Ben de Groot wrote:
> On 14 May 2012 04:27, Mike Gilbert <floppym@gentoo.org> wrote:
>> To make ebuilds utilizing python-distutils-ng.eclass usable
>> "out-of-the-box", the python team would like to add the following to
>> make.defaults in the base profile.
>>
>> PYTHON_TARGETS="python2_7"
>>
>> See also bug 415575 [1].
>>
>> Any objections?
> 
> I think this is a good addition.
> 
>> I would also like to include python3_2, but I do not think this will be
>> possible due to dev-lang/python:3.2 not being stabilized on several
>> arches. Perhaps this could be set in arch-specific profiles? Would that
>> work?
> 
> I don't see how python:3.2 is useful for most of our users. And I
> especially don't see how having two python versions installed (but
> only one active) is useful for most of our users. So let's make
> sure only one version gets pulled in, unless specifically
> configured by the user.

So long as any installed package depends on dev-lang/python without
specifying a version, the user will end up with python-3 unless they
mask it. There is no easy way out of that situation at this point; I
think it would basically require renaming >=dev-lang/python-3 to
something else.

If we acknowledge that users have both python:3.2 and python:2.7
installed most of the time, I think it makes sense to set the default
value of PYTHON_TARGETS to match that expectation.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-14 15:09   ` Mike Gilbert
@ 2012-05-14 15:17     ` Pacho Ramos
  2012-05-14 17:00       ` Mike Gilbert
  0 siblings, 1 reply; 13+ messages in thread
From: Pacho Ramos @ 2012-05-14 15:17 UTC (permalink / raw
  To: gentoo-dev; +Cc: Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 1928 bytes --]

El lun, 14-05-2012 a las 11:09 -0400, Mike Gilbert escribió:
> On 5/14/2012 12:50 AM, Ben de Groot wrote:
> > On 14 May 2012 04:27, Mike Gilbert <floppym@gentoo.org> wrote:
> >> To make ebuilds utilizing python-distutils-ng.eclass usable
> >> "out-of-the-box", the python team would like to add the following to
> >> make.defaults in the base profile.
> >>
> >> PYTHON_TARGETS="python2_7"
> >>
> >> See also bug 415575 [1].
> >>
> >> Any objections?
> > 
> > I think this is a good addition.
> > 
> >> I would also like to include python3_2, but I do not think this will be
> >> possible due to dev-lang/python:3.2 not being stabilized on several
> >> arches. Perhaps this could be set in arch-specific profiles? Would that
> >> work?
> > 
> > I don't see how python:3.2 is useful for most of our users. And I
> > especially don't see how having two python versions installed (but
> > only one active) is useful for most of our users. So let's make
> > sure only one version gets pulled in, unless specifically
> > configured by the user.
> 
> So long as any installed package depends on dev-lang/python without
> specifying a version, the user will end up with python-3 unless they
> mask it. There is no easy way out of that situation at this point; I
> think it would basically require renaming >=dev-lang/python-3 to
> something else.
> 
> If we acknowledge that users have both python:3.2 and python:2.7
> installed most of the time, I think it makes sense to set the default
> value of PYTHON_TARGETS to match that expectation.
> 

Would be too difficult to finally fix ebuilds to properly convet
shebangs and so and then, be able to have a proper system even when
python3 is main interpreter?

Personally, I run with it as main interpreter to catch failures, and try
to fix them when possible, maybe all devs should do the same to fix
packages still not working at all.




[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-14 15:17     ` Pacho Ramos
@ 2012-05-14 17:00       ` Mike Gilbert
  0 siblings, 0 replies; 13+ messages in thread
From: Mike Gilbert @ 2012-05-14 17:00 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

On 5/14/2012 11:17 AM, Pacho Ramos wrote:
> Would be too difficult to finally fix ebuilds to properly convet
> shebangs and so and then, be able to have a proper system even when
> python3 is main interpreter?

Yeah, python_convert_shebangs is an easy fix for most cases.

> Personally, I run with it as main interpreter to catch failures, and try
> to fix them when possible, maybe all devs should do the same to fix
> packages still not working at all.

Thanks for that, the help is appreciated.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-dev] Re: Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-13 20:27 [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile Mike Gilbert
                   ` (2 preceding siblings ...)
       [not found] ` <CAB9SyzSJ7ge5gQJ6vAoVf+VFaNPhVuc4B_YEGov5oJiii6gVAQ@mail.gmail.com>
@ 2012-05-14 17:52 ` Mike Gilbert
  2012-05-18  3:54   ` Jeroen Roovers
  2012-05-22  2:50 ` [gentoo-dev] " Donnie Berkholz
  4 siblings, 1 reply; 13+ messages in thread
From: Mike Gilbert @ 2012-05-14 17:52 UTC (permalink / raw
  To: Gentoo Dev, Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

On 5/13/2012 4:27 PM, Mike Gilbert wrote:
> To make ebuilds utilizing python-distutils-ng.eclass usable
> "out-of-the-box", the python team would like to add the following to
> make.defaults in the base profile.
> 
> PYTHON_TARGETS="python2_7"
> 
> See also bug 415575 [1].
> 
> Any objections?
> 

Seeing no objections to this part, I plan to add
PYTHON_TARGETS="python2_7" to the base profile in the next day or so.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Re: Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-14 17:52 ` [gentoo-dev] " Mike Gilbert
@ 2012-05-18  3:54   ` Jeroen Roovers
  0 siblings, 0 replies; 13+ messages in thread
From: Jeroen Roovers @ 2012-05-18  3:54 UTC (permalink / raw
  To: gentoo-dev

On Mon, 14 May 2012 13:52:49 -0400
Mike Gilbert <floppym@gentoo.org> wrote:

> On 5/13/2012 4:27 PM, Mike Gilbert wrote:
> > To make ebuilds utilizing python-distutils-ng.eclass usable
> > "out-of-the-box", the python team would like to add the following to
> > make.defaults in the base profile.
> > 
> > PYTHON_TARGETS="python2_7"
> > 
> > See also bug 415575 [1].
> > 
> > Any objections?
> > 
> 
> Seeing no objections to this part, I plan to add
> PYTHON_TARGETS="python2_7" to the base profile in the next day or so.

That's a slightly better kind of madness than adding python3 to any
arch that happens to have python3 stable. Good luck out there.


      jer



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-13 20:27 [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile Mike Gilbert
                   ` (3 preceding siblings ...)
  2012-05-14 17:52 ` [gentoo-dev] " Mike Gilbert
@ 2012-05-22  2:50 ` Donnie Berkholz
  2012-05-22  5:58   ` Hans de Graaff
  2012-05-22  6:22   ` [gentoo-dev] " Ryan Hill
  4 siblings, 2 replies; 13+ messages in thread
From: Donnie Berkholz @ 2012-05-22  2:50 UTC (permalink / raw
  To: gentoo-dev; +Cc: Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

On 16:27 Sun 13 May     , Mike Gilbert wrote:
> To make ebuilds utilizing python-distutils-ng.eclass usable

I didn't read any farther because I couldn't stop laughing. What will 
the next version of this eclass be called, -ng-ng? -really-ng? =)

--
Thanks,
Donnie

Donnie Berkholz
Council Member / Sr. Developer, Gentoo Linux <http://dberkholz.com>
Analyst, RedMonk <http://redmonk.com/dberkholz/>

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-22  2:50 ` [gentoo-dev] " Donnie Berkholz
@ 2012-05-22  5:58   ` Hans de Graaff
  2012-05-22  6:36     ` Krzysztof Pawlik
  2012-05-22  6:22   ` [gentoo-dev] " Ryan Hill
  1 sibling, 1 reply; 13+ messages in thread
From: Hans de Graaff @ 2012-05-22  5:58 UTC (permalink / raw
  To: gentoo-dev; +Cc: Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

On Mon, 2012-05-21 at 21:50 -0500, Donnie Berkholz wrote:
> On 16:27 Sun 13 May     , Mike Gilbert wrote:
> > To make ebuilds utilizing python-distutils-ng.eclass usable
> 
> I didn't read any farther because I couldn't stop laughing. What will 
> the next version of this eclass be called, -ng-ng? -really-ng? =)

Given that Diego named the original ruby-ng eclass I would assume it
would be ruby-voyager, or python-distutils-voyager.

Kind regards,

Hans

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-dev] Re: Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-22  2:50 ` [gentoo-dev] " Donnie Berkholz
  2012-05-22  5:58   ` Hans de Graaff
@ 2012-05-22  6:22   ` Ryan Hill
  1 sibling, 0 replies; 13+ messages in thread
From: Ryan Hill @ 2012-05-22  6:22 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

On Mon, 21 May 2012 21:50:33 -0500
Donnie Berkholz <dberkholz@gentoo.org> wrote:

> On 16:27 Sun 13 May     , Mike Gilbert wrote:
> > To make ebuilds utilizing python-distutils-ng.eclass usable
> 
> I didn't read any farther because I couldn't stop laughing. What will 
> the next version of this eclass be called, -ng-ng? -really-ng? =)

-ds9


-- 
fonts, gcc-porting
toolchain, wxwidgets
@ gentoo.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile
  2012-05-22  5:58   ` Hans de Graaff
@ 2012-05-22  6:36     ` Krzysztof Pawlik
  0 siblings, 0 replies; 13+ messages in thread
From: Krzysztof Pawlik @ 2012-05-22  6:36 UTC (permalink / raw
  To: gentoo-dev; +Cc: Hans de Graaff, Gentoo Python Project

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

On 22/05/12 07:58, Hans de Graaff wrote:
> On Mon, 2012-05-21 at 21:50 -0500, Donnie Berkholz wrote:
>> On 16:27 Sun 13 May     , Mike Gilbert wrote:
>>> To make ebuilds utilizing python-distutils-ng.eclass usable
>>
>> I didn't read any farther because I couldn't stop laughing. What will 
>> the next version of this eclass be called, -ng-ng? -really-ng? =)
> 
> Given that Diego named the original ruby-ng eclass I would assume it
> would be ruby-voyager, or python-distutils-voyager.

ruby-enterprise and python-distutils-enterprise ;)

We can also go the Borland way and have ruby-turbo & python-disutils-turbo.

-- 
Krzysztof Pawlik  <nelchael at gentoo.org>  key id: 0xF6A80E46
desktop-misc, java, vim, kernel, python, apache...


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 554 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-05-22  6:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-13 20:27 [gentoo-dev] Adding PYTHON_TARGETS=python2_7 to base profile Mike Gilbert
2012-05-13 21:04 ` Zac Medico
2012-05-14  5:23 ` Hans de Graaff
2012-05-14  6:50   ` Michał Górny
     [not found] ` <CAB9SyzSJ7ge5gQJ6vAoVf+VFaNPhVuc4B_YEGov5oJiii6gVAQ@mail.gmail.com>
2012-05-14 15:09   ` Mike Gilbert
2012-05-14 15:17     ` Pacho Ramos
2012-05-14 17:00       ` Mike Gilbert
2012-05-14 17:52 ` [gentoo-dev] " Mike Gilbert
2012-05-18  3:54   ` Jeroen Roovers
2012-05-22  2:50 ` [gentoo-dev] " Donnie Berkholz
2012-05-22  5:58   ` Hans de Graaff
2012-05-22  6:36     ` Krzysztof Pawlik
2012-05-22  6:22   ` [gentoo-dev] " Ryan Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox