From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: python@gentoo.org
Subject: Re: [gentoo-dev] [PATCH 0/5] python-r1 suite: python_gen_impl_dep() function
Date: Thu, 31 Dec 2015 15:52:58 +0100 [thread overview]
Message-ID: <20151231155259.143602c6.mgorny@gentoo.org> (raw)
In-Reply-To: <1450889080-1920-1-git-send-email-mgorny@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 3410 bytes --]
On Wed, 23 Dec 2015 17:44:35 +0100
Michał Górny <mgorny@gentoo.org> wrote:
> Hi,
>
> Here's a quick set of patches that add python_gen_impl_dep() function
> to python-r1 and python-single-r1 eclasses, and use them in a few
> ebuilds.
>
> The problem solved is that some Python packages need to depend on more
> than one combination of USE flags on the Python interpreter. Currently,
> we solved this through bash-substituting USE dependencies in generated
> ${PYTHON_DEPS} -- though this was kinda ugly.
>
> The python_gen_impl_dep() function intends to match API of other
> functions. In particular, its usage is:
>
> python_gen_impl_dep <req-use> [<impl-pattern>...]
>
> where req-use defines the USE-dep for Python interpreters (alike
> PYTHON_REQ_USE) and can optionally be an empty string, and impl-patterns
> specify PYTHON_COMPAT patterns to match implementations that will be
> present in the dependency. If no patterns are passed, '*' is assumed.
>
> Examples (for PYTHON_COMPAT=( python2_7 python3_4 )):
>
> python_gen_impl_dep 'bzip2(+)'
>
> python_targets_python2_7? ( dev-lang/python:2.7[bzip2(+)] )
> python_targets_python3_4? ( dev-lang/python:3.4[bzip2(+)] )
>
> python_gen_impl_dep ''
>
> python_targets_python2_7? ( dev-lang/python:2.7 )
> python_targets_python3_4? ( dev-lang/python:3.4 )
>
> python_gen_impl_dep '' python3*
>
> python_targets_python3_4? ( dev-lang/python:3.4 )
>
> Please review the patches sent in reply.
>
>
> Michał Górny (5):
> python-r1.eclass: Introduce python_gen_impl_dep
> python-single-r1.eclass: Add python_gen_impl_dep, alike in python-r1
> app-emulation/xen-tools: Make use of new python_gen_impl_dep function
> dev-python/django: Make use of the new python_gen_impl_dep function
> sys-apps/portage: Make use of the new python_gen_impl_dep function
>
> app-emulation/xen-tools/xen-tools-4.2.5-r10.ebuild | 2 +-
> app-emulation/xen-tools/xen-tools-4.2.5-r11.ebuild | 2 +-
> app-emulation/xen-tools/xen-tools-4.5.2-r2.ebuild | 4 +-
> app-emulation/xen-tools/xen-tools-4.5.2-r3.ebuild | 4 +-
> app-emulation/xen-tools/xen-tools-4.6.0-r4.ebuild | 2 +-
> app-emulation/xen-tools/xen-tools-4.6.0-r5.ebuild | 2 +-
> dev-python/django/django-1.4.22.ebuild | 2 +-
> dev-python/django/django-1.5.12.ebuild | 2 +-
> dev-python/django/django-1.6.11.ebuild | 2 +-
> dev-python/django/django-1.7.11.ebuild | 2 +-
> dev-python/django/django-1.8.7.ebuild | 2 +-
> dev-python/django/django-1.9.ebuild | 2 +-
> dev-python/django/django-9999.ebuild | 2 +-
> eclass/python-r1.eclass | 52 +++++++++++++++++++
> eclass/python-single-r1.eclass | 58 ++++++++++++++++++++++
> sys-apps/portage/portage-2.2.20.1.ebuild | 3 +-
> sys-apps/portage/portage-2.2.23.ebuild | 3 +-
> sys-apps/portage/portage-2.2.24.ebuild | 3 +-
> sys-apps/portage/portage-2.2.25.ebuild | 3 +-
> sys-apps/portage/portage-2.2.26.ebuild | 3 +-
> sys-apps/portage/portage-9999.ebuild | 3 +-
> 21 files changed, 131 insertions(+), 27 deletions(-)
Merged.
--
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]
prev parent reply other threads:[~2015-12-31 14:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-23 16:44 [gentoo-dev] [PATCH 0/5] python-r1 suite: python_gen_impl_dep() function Michał Górny
2015-12-23 16:44 ` [gentoo-dev] [PATCH 1/5] python-r1.eclass: Introduce python_gen_impl_dep Michał Górny
2015-12-23 16:44 ` [gentoo-dev] [PATCH 2/5] python-single-r1.eclass: Add python_gen_impl_dep, alike in python-r1 Michał Górny
2015-12-23 16:44 ` [gentoo-dev] [PATCH 3/5] app-emulation/xen-tools: Make use of new python_gen_impl_dep function Michał Górny
2015-12-24 16:21 ` Doug Goldstein
2015-12-23 16:44 ` [gentoo-dev] [PATCH 4/5] dev-python/django: Make use of the " Michał Górny
2015-12-23 16:44 ` [gentoo-dev] [PATCH 5/5] sys-apps/portage: " Michał Górny
2015-12-24 15:30 ` [gentoo-dev] [PATCH 0/5] python-r1 suite: python_gen_impl_dep() function Peter Stuge
2015-12-29 17:40 ` Michał Górny
2015-12-31 14:52 ` Michał Górny [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151231155259.143602c6.mgorny@gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=python@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox