[gentoo-dev] PYTHON flags grammar? why?

2013-07-28 Thread Walter Dnes
On Sat, Jul 27, 2013 at 09:59:38AM +0200, Ulrich Mueller wrote
  On Sat, 27 Jul 2013, Leho Kraav wrote:
 
  php5-5 vs python2_7
  Why, how did that happen?
 
 Using the hyphen is cleaner, because the underscore is used as the
 separator for USE_EXPAND.
 
 (OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
 variable, python2_7 will also work fine.)

  Out of sheer curiousity, why does make.conf need all 3 of...

PYTHON_SINGLE_TARGET=python2_7
PYTHON_TARGETS=python2_7
USE_PYTHON=2.7

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-dev] PYTHON flags grammar? why?

2013-07-28 Thread Alex Xu
On 28/07/13 05:07 PM, Walter Dnes wrote:
 On Sat, Jul 27, 2013 at 09:59:38AM +0200, Ulrich Mueller wrote
 On Sat, 27 Jul 2013, Leho Kraav wrote:

 php5-5 vs python2_7
 Why, how did that happen?

 Using the hyphen is cleaner, because the underscore is used as the
 separator for USE_EXPAND.

 (OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
 variable, python2_7 will also work fine.)
 
   Out of sheer curiousity, why does make.conf need all 3 of...
 
 PYTHON_SINGLE_TARGET=python2_7

Because some packages only accept a single version of Python. e.g.
Blender, systemd. I think this also applies to the default Python
version for packages that install executables.

 PYTHON_TARGETS=python2_7

Because the Python ABI [*] requires different libraries to be built for
different versions and installed in different places. /usr/lib/python?.?

[*] not really a binary interface, but let's call it that
 USE_PYTHON=2.7

This is deprecated, AFAIK and used for old packages that do not support
PYTHON_TARGETS. (something to do with EAPI or eclass or something like that)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] PYTHON flags grammar? why?

2013-07-28 Thread Michał Górny
Dnia 2013-07-28, o godz. 17:07:20
Walter Dnes waltd...@waltdnes.org napisał(a):

 On Sat, Jul 27, 2013 at 09:59:38AM +0200, Ulrich Mueller wrote
   On Sat, 27 Jul 2013, Leho Kraav wrote:
  
   php5-5 vs python2_7
   Why, how did that happen?
  
  Using the hyphen is cleaner, because the underscore is used as the
  separator for USE_EXPAND.
  
  (OTOH, as long a nobody will introduce a PYTHON_TARGETS_PYTHON2
  variable, python2_7 will also work fine.)
 
   Out of sheer curiousity, why does make.conf need all 3 of...
 
 PYTHON_SINGLE_TARGET=python2_7
 PYTHON_TARGETS=python2_7
 USE_PYTHON=2.7

You could also search the archives instead of bringing up the same
questions again. The whole rationale was there.

And before yet another person asks: gmane!

-- 
Best regards,
Michał Górny


signature.asc
Description: PGP signature