Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setuptools for Python 3.3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
PsyGhost
n00b
n00b


Joined: 18 May 2005
Posts: 25

PostPosted: Wed Dec 19, 2012 7:52 pm    Post subject: setuptools for Python 3.3 Reply with quote

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
View user's profile Send private message
salahx
Guru
Guru


Joined: 12 Mar 2005
Posts: 530

PostPosted: Thu Dec 20, 2012 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum