From: Mike Gilbert <floppym@gentoo.org>
To: Gentoo Dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] RFC: ${PYTHON_COMPAT_ADD} in addition to ${PYTHON_COMPAT_OVERRIDE}
Date: Mon, 15 Jan 2018 12:07:02 -0500 [thread overview]
Message-ID: <CAJ0EP41DPs54Q50MWD_wDPrALFB_-E2cjK+P2_V=hKwGOuj7Qw@mail.gmail.com> (raw)
In-Reply-To: <c9cd2bea-74b1-0c2a-2633-bd114140c5d5@gmail.com>
On Mon, Jan 15, 2018 at 10:27 AM, Francesco Riosa <vivo75@gmail.com> wrote:
>
> In late 2015 ${PYTHON_COMPAT_OVERRIDE} has been standardized and added
> to all python eclasses, it's useful for developers that want test and
> mark the package for newer versions of python.
>
> However (unless I'm missing something) PYTHON_COMPAT_OVERRIDE is not
> usable if:
> - the user want only python 2.7 and 3.6 (latest) installed
> no python 3.5
> - don't want to mess dependencies (the warnings in the eclass are scary)
>
> So, what can be done to let the user choose it's preferred python
> version(s) without having to build it's own overlay?
>
> One solution is to change ebuilds in tree to include a user variable in
> the PYTHON* arrays, example:
>
> -PYTHON_COMPAT=( python3_{4,5} )
> +PYTHON_COMPAT=( python3_{4,5} ${PYTHON_COMPAT_ADD} )
>
> if someone want to bet that packages are ok with 3.6/latest (even before
> a developer tested it) then add PYTHON_COMPAT_ADD=python3_6 to
> /etc/portage/make.conf and run egencache.
I like the idea to inject values into PYTHON_COMPAT instead of
overriding it completely. I'm pretty sure this can/should be
implemented in the eclass without touching ebuilds.
I'm not sure I really like the idea of affecting the other metadata
variables. I can see your point about wanting to remove python
versions that would otherwise satisfy dependencies. If metadata is
modified this way, it would definitely be "unsupported".
As far as implementation, you would probably need to write the patches for this.
Also, I expect the QA team might have some objections, so you may want
to discuss it with them (especially mgorny) before spending too much
time on it.
next prev parent reply other threads:[~2018-01-15 17:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-15 15:27 [gentoo-dev] RFC: ${PYTHON_COMPAT_ADD} in addition to ${PYTHON_COMPAT_OVERRIDE} Francesco Riosa
2018-01-15 17:07 ` Mike Gilbert [this message]
2018-01-16 0:05 ` Francesco Riosa
2018-01-16 0:40 ` Alec Warner
2018-01-16 13:16 ` Francesco Riosa
2018-01-16 7:57 ` Michał Górny
2018-01-16 13:09 ` Francesco Riosa
2018-01-16 13:20 ` Michał Górny
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='CAJ0EP41DPs54Q50MWD_wDPrALFB_-E2cjK+P2_V=hKwGOuj7Qw@mail.gmail.com' \
--to=floppym@gentoo.org \
--cc=gentoo-dev@lists.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