* [gentoo-python] python-any-r1 and MERGE_TYPE
@ 2013-10-10 20:04 Michał Górny
2013-10-10 23:05 ` [gentoo-python] " Mike Gilbert
0 siblings, 1 reply; 4+ messages in thread
From: Michał Górny @ 2013-10-10 20:04 UTC (permalink / raw
To: gentoo-python; +Cc: python
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
Hello,
After adding python_gen_any_dep to solve issues with dependencies of
python-any-r1 packages, there's yet another thing that needs some of
our attention.
Most of python-any-r1 ebuilds use Python during build-time only. I'm
not aware of a single python-any-r1 ebuild that would use Python during
pkg_* functions. This means that a typical python-any-r1 ebuild would
need to:
pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup
}
As you can guess, only a few ebuilds actually do that, and it's not
really friendly to repeat that over and over again.
While having this snippet missing usually doesn't cause much bad, it
can be quite hurtful to binary packages in the future. Most
importantly, when an ebuild uses uncommon version of Python during
build time, the binary package will fail to install --
python-any-r1_pkg_setup will bail out being unable to find supported
Python.
Therefore, I think it would be beneficial to add the MERGE_TYPE check
inside pkg_setup. In case someone needs Python during binary package
install, we can (likely in the future):
1. add a variable to disable the MERGE_TYPE check,
2. add a new function that does the actual Python setup and make
the default pkg_setup() a common-case wrapper for it.
What are your thoughts?
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-python] Re: python-any-r1 and MERGE_TYPE
2013-10-10 20:04 [gentoo-python] python-any-r1 and MERGE_TYPE Michał Górny
@ 2013-10-10 23:05 ` Mike Gilbert
2013-10-11 9:04 ` Marien Zwart
0 siblings, 1 reply; 4+ messages in thread
From: Mike Gilbert @ 2013-10-10 23:05 UTC (permalink / raw
To: Michał Górny; +Cc: gentoo-python, Gentoo Python Project
On Thu, Oct 10, 2013 at 4:04 PM, Michał Górny <mgorny@gentoo.org> wrote:
> Hello,
>
> After adding python_gen_any_dep to solve issues with dependencies of
> python-any-r1 packages, there's yet another thing that needs some of
> our attention.
>
> Most of python-any-r1 ebuilds use Python during build-time only. I'm
> not aware of a single python-any-r1 ebuild that would use Python during
> pkg_* functions. This means that a typical python-any-r1 ebuild would
> need to:
>
> pkg_setup() {
> [[ ${MERGE_TYPE} != binary ]] && python-any-r1_pkg_setup
> }
>
> As you can guess, only a few ebuilds actually do that, and it's not
> really friendly to repeat that over and over again.
>
> While having this snippet missing usually doesn't cause much bad, it
> can be quite hurtful to binary packages in the future. Most
> importantly, when an ebuild uses uncommon version of Python during
> build time, the binary package will fail to install --
> python-any-r1_pkg_setup will bail out being unable to find supported
> Python.
>
> Therefore, I think it would be beneficial to add the MERGE_TYPE check
> inside pkg_setup. In case someone needs Python during binary package
> install, we can (likely in the future):
>
> 1. add a variable to disable the MERGE_TYPE check,
>
> 2. add a new function that does the actual Python setup and make
> the default pkg_setup() a common-case wrapper for it.
>
> What are your thoughts?
>
#2 sounds like a solid plan.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-python] Re: python-any-r1 and MERGE_TYPE
2013-10-10 23:05 ` [gentoo-python] " Mike Gilbert
@ 2013-10-11 9:04 ` Marien Zwart
2013-10-12 11:16 ` Michał Górny
0 siblings, 1 reply; 4+ messages in thread
From: Marien Zwart @ 2013-10-11 9:04 UTC (permalink / raw
To: Michał Górny; +Cc: gentoo-python, Gentoo Python Project
On Fri, Oct 11, 2013 at 10:05 AM, Mike Gilbert <floppym@gentoo.org> wrote:
> On Thu, Oct 10, 2013 at 4:04 PM, Michał Górny <mgorny@gentoo.org> wrote:
>> Therefore, I think it would be beneficial to add the MERGE_TYPE check
>> inside pkg_setup. In case someone needs Python during binary package
>> install, we can (likely in the future):
>>
>> 1. add a variable to disable the MERGE_TYPE check,
>>
>> 2. add a new function that does the actual Python setup and make
>> the default pkg_setup() a common-case wrapper for it.
>>
>> What are your thoughts?
>>
>
> #2 sounds like a solid plan.
>
Sounds good to me.
--
Marien Zwart (marienz)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-python] Re: python-any-r1 and MERGE_TYPE
2013-10-11 9:04 ` Marien Zwart
@ 2013-10-12 11:16 ` Michał Górny
0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2013-10-12 11:16 UTC (permalink / raw
To: Marien Zwart; +Cc: gentoo-python, Gentoo Python Project
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
Dnia 2013-10-11, o godz. 20:04:57
Marien Zwart <marienz@gentoo.org> napisał(a):
> On Fri, Oct 11, 2013 at 10:05 AM, Mike Gilbert <floppym@gentoo.org> wrote:
> > On Thu, Oct 10, 2013 at 4:04 PM, Michał Górny <mgorny@gentoo.org> wrote:
> >> Therefore, I think it would be beneficial to add the MERGE_TYPE check
> >> inside pkg_setup. In case someone needs Python during binary package
> >> install, we can (likely in the future):
> >>
> >> 1. add a variable to disable the MERGE_TYPE check,
> >>
> >> 2. add a new function that does the actual Python setup and make
> >> the default pkg_setup() a common-case wrapper for it.
> >>
> >> What are your thoughts?
> >
> > #2 sounds like a solid plan.
>
> Sounds good to me.
I have added the MERGE_TYPE check then. I think we can
add the dedicated function when someone actually needs it.
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-12 11:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-10 20:04 [gentoo-python] python-any-r1 and MERGE_TYPE Michał Górny
2013-10-10 23:05 ` [gentoo-python] " Mike Gilbert
2013-10-11 9:04 ` Marien Zwart
2013-10-12 11:16 ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox