public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ian Stakenvicius <axs@gentoo.org>
To: gentoo-python@lists.gentoo.org
Subject: Re: [gentoo-python] Reducing exceptionality cases for PYTHON_SINGLE_TARGET
Date: Wed, 29 Oct 2014 14:40:08 -0400	[thread overview]
Message-ID: <54513488.7060709@gentoo.org> (raw)
In-Reply-To: <20141029182529.GF15443@odin.tremily.us>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 29/10/14 02:25 PM, W. Trevor King wrote:
> On Wed, Oct 29, 2014 at 02:17:29PM -0400, Ian Stakenvicius wrote:
>> As python-single-r1.eclass is meant to ensure that a package is 
>> bound to just one implementation when multiple implementations 
>> are possible, usually because it is too difficult to make the 
>> package multibuild, it would make sense to me that if there is 
>> actually just one possible implementation…
> 
> I understand “It's too difficult for me to get this build system to
> work with multiple Python versions.”  I'm skeptical that there are
> any packages where “there is actually just one possible 
> implementation.” Still I agree that some users will want a way to 
> say “if I ask for a package that only installs for one Python 
> implementation, just install it without my needing to tweak my USE 
> flags.”

There's a ton of packages that are only python2 -- that is, have
PYTHON_COMPAT=( python2_{6,7} ) or equivalent, and since python2_6
(and earlier) isn't in the supported implementations list, that leaves
just python2_7.  If you'd like, I can do up a list.

> Personally, I'd prefer to stick with my existing 
> PYTHON_SINGLE_TARGET. If a package doesn't like that, I can think 
> harder about whether or not I actually need the package.  My
> Docker images [1], for example, are single-Python implementations
> and I don't want to pull in another Python accidentally.

This change will not pull in extra python versions, it just changes
the python-single-r1 inheriting ebuilds so that they rely on the
values set in PYTHON_TARGETS for resolution, instead of
PYTHON_SINGLE_TARGET.

So the only way you would accidentally pull in a different python is
if you didn't set PYTHON_TARGETS, or set it to have multiple values.
PYTHON_SINGLE_TARGET is only for choosing which of the PYTHON_TARGETS
values should be used when a package can't multibuild.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREIAAYFAlRRNIgACgkQ2ugaI38ACPDVLwD8DZpnfB6c6XsVbcNADycHS1K3
VjaOeFzVn2VghqHaaaABAKLDaaOPDj7YBZUEufJqtN2BdHkQKPub11vPnuWVN2eI
=I8M9
-----END PGP SIGNATURE-----


  reply	other threads:[~2014-10-29 18:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29 18:17 [gentoo-python] Reducing exceptionality cases for PYTHON_SINGLE_TARGET Ian Stakenvicius
2014-10-29 18:25 ` W. Trevor King
2014-10-29 18:40   ` Ian Stakenvicius [this message]
     [not found]   ` <5451330B.7000705@gentoo.org>
     [not found]     ` <20141029184254.GI15443@odin.tremily.us>
2014-10-29 18:47       ` Ian Stakenvicius
2014-10-29 18:31 ` Michał Górny
2014-10-29 18:39   ` Ian Stakenvicius
2014-10-29 20:09     ` Michał Górny
2014-10-29 20:21       ` Mike Gilbert
2014-10-29 20:25         ` Michał Górny
2014-10-30 19:21           ` Ian Stakenvicius
2014-10-30 19:43             ` Michał Górny
2014-10-30 20:26               ` Mike Gilbert
2014-10-30 21:31                 ` 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=54513488.7060709@gentoo.org \
    --to=axs@gentoo.org \
    --cc=gentoo-python@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