View previous topic :: View next topic |
Author |
Message |
PsyGhost n00b
Joined: 18 May 2005 Posts: 25
|
Posted: Wed Dec 19, 2012 7:52 pm Post subject: setuptools for Python 3.3 |
|
|
First of all, I should say that I use Sabayon Linux and not vanilla Gentoo.
I have Python versions 2.7, 3.2 and 3.3 Installed in my system. The latter was emerged by portage and the others installed by entropy.
I wish to emerge the setuptools package for all Python versions. emerge -va setuptools showed the following:
Code: | [ebuild N ] dev-python/python-exec-0.2 PYTHON_TARGETS="(jython2_5) (pypy1_8) (pypy1_9) (python2_5) (python2_6) (python2_7) (python3_1) (python3_2) (-python3_3)" 64 kB
[ebuild U ] dev-python/setuptools-0.6.32 [0.6.27] PYTHON_TARGETS="python2_7%* -pypy1_8% -pypy1_9% -python2_5% -python2_6% -python3_1% -python3_2% (-python3_3)" 629 kB
|
So i created /etc/portage/package.env which contains the following:
Code: | dev-python/setuptools python.conf
dev-python/python-exec python.conf
|
and /etc/portage/env/python.conf which contains:
Code: | PYTHON_TARGETS="python3_2 python2_7 python3_3"
|
Ran emerge again and now it shows:
Code: | [ebuild N ] dev-python/python-exec-0.2 PYTHON_TARGETS="(jython2_5) (pypy1_8) (pypy1_9) (python2_5) (python2_6) (python2_7) (python3_1) (python3_2) (-python3_3)" 64 kB
[ebuild U ] dev-python/setuptools-0.6.32 [0.6.27] PYTHON_TARGETS="python2_7%* python3_2%* -pypy1_8% -pypy1_9% -python2_5% -python2_6% -python3_1% (-python3_3)" 629 kB
|
Python 3.2 was enabled this time, but Python 3.3 is still disabled. It is also wrapped with brackets in contrary to the other versions. Why is that? |
|
Back to top |
|
|
salahx Guru
Joined: 12 Mar 2005 Posts: 530
|
Posted: Thu Dec 20, 2012 6:43 am Post subject: |
|
|
When a USE flag is in brackets, its means its use flag is masked . You can override it by adding the reversed flag (-flag) /etc/portage/profile/use.mask (globally) or /etc/portage/profile/package.use.mask (for just a particular package) - note /etc/portage/profile doesn't exist by default. Note however use flags are usually masked for good reasons (this particular one is masked in /usr/portage/profiles/base/use.mask)
Now the syntax is a little trickier here because the flag in question is part of a USE_EXPAND (PYTHON_TARGETS in this case) so you have to specify the full name: python_targets_python3_3 (so -python_targets_python3_3 to unmask it). |
|
Back to top |
|
|
|