public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [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

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