Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
too much diskspace used
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Jan 23, 2016 6:51 pm    Post subject: Reply with quote

josephg wrote:
'emerge -uDv --changed-use @world' failed because some packages only use python3x. i emerged those successfully with commandline flags. how/where can i set the PYTHON_TARGETS for specific packages.

josephg ... as it's a 'use_expand' you can do the following:

/etc/portage/package.use:
category/package python_targets_python3_4

... so much the same as any useflag. I can't think what packages explicity need python3.x an you post the output of the following:

Code:
# EIX_LIMIT=0 eix '-I#' --installed-with-use python_targets_python3_4

josephg wrote:
khay it's done!! except i think i cannot mask python3x due to some packages.

Well, that sort of defeats the purpose ... you *should* be able to purge 3.x completely, not sure why that isn't happening but the above 'eix' should give us some idea.

best ... khay
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Sat Jan 23, 2016 6:55 pm    Post subject: Reply with quote

josephg,

I don't think there is any need to move things. The context is relevant to the troubleshooting too.
You can't move posts between threads.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 23, 2016 7:20 pm    Post subject: Reply with quote

ok NeddySeagoon thanks.

khay, i removed all the other packages. the only one remaining is x11-misc/redshift, as i don't know of any alternatives.

ha, i was trying to make it work in package.use like so
Code:
$ grep redshift /etc/portage/package.use
x11-misc/redshift PYTHON_TARGETS="python3_4"


instead, i should use like so?
Code:
x11-misc/redshift python_target_python3_4

update: thanks, this worked.

i installed eix, and after eix-update
Code:
# EIX_LIMIT=0 eix '-I#' --installed-with-use python_targets_python3_4
dev-lang/python-exec
x11-misc/redshift


Last edited by josephg on Sat Jan 23, 2016 9:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Jan 23, 2016 8:36 pm    Post subject: Reply with quote

josephg wrote:
[...] i should use like so?
Code:
x11-misc/redshift python_target_python3_4

josephg ... yup.

josephg wrote:
Code:
# EIX_LIMIT=0 eix '-I#' --installed-with-use python_targets_python3_4
dev-lang/python-exec
x11-misc/redshift

ok, so its only really x11-misc/redshift, this doesn't have a python_target for python2.7 and so you must have 3.x ... or loose redshift.

best ... khay
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Sat Jan 23, 2016 10:22 pm    Post subject: Reply with quote

josephg wrote:
i emerged those successfully with commandline flags. how/where can i set the PYTHON_TARGETS for specific packages.


Excerpted from my /etc/make.conf
Code:

PYTHON_TARGETS="python2_7"
PYTHON_SINGLE_TARGET="python2_7"
USE_PYTHON='2.7 '


Each is on a separate line. I don't think the order matters or where in the file. You are just setting environment variables.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 23, 2016 10:34 pm    Post subject: Reply with quote

Tony0945 wrote:
Excerpted from my /etc/make.conf
Code:

PYTHON_TARGETS="python2_7"
PYTHON_SINGLE_TARGET="python2_7"
USE_PYTHON='2.7 '


thanks, could you tell me what each of them means?

i think i probably understand the first one, and i have it in my make.conf. there is a long discussion re this up this thread.

i don't understand the second one.

is the third one in addition to what "eselect python set" does?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Sun Jan 24, 2016 12:02 am    Post subject: Reply with quote

josephg wrote:

thanks, could you tell me what each of them means?

i think i probably understand the first one, and i have it in my make.conf. there is a long discussion re this up this thread.

i don't understand the second one.

is the third one in addition to what "eselect python set" does?


To be perfectly honest, they are magical incantations that I have picked up from the forums. I have only a vague idea of how portage works and no ideas about the internals. I was only illustrating how to use them every time instead of typing them on every emerge.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Jan 24, 2016 12:19 am    Post subject: Reply with quote

Tony0945 wrote:
To be perfectly honest, they are magical incantations that I have picked up from the forums. I have only a vague idea of how portage works and no ideas about the internals. I was only illustrating how to use them every time instead of typing them on every emerge.


To be perfectly honest, I'm not sure I believe in magical incantations ;) but thank you for letting me know!

You can use them in make.conf and package.use. Have a look through the previous posts in this thread. If you don't understand, I could try to explain what I have learned in this case re PYTHON.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Sun Jan 24, 2016 12:31 am    Post subject: Reply with quote

josephg,

I was going to point you at
Code:
man make.conf
but the PYTHON variables are not listed.
Also in make.conf.example which is a fully commented file explaining make.conf. They are not there either.

Finding make.conf.example is left as an exercise for the reader.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sun Jan 24, 2016 12:34 am    Post subject: Reply with quote

http://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS

although i'm not quite sure whether the wiki is correct about how it is implemented. at least on my install USE_PYTHON wasn't defined, and portage didn't respect the eselect choice.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Sun Jan 24, 2016 7:37 pm    Post subject: Reply with quote

Thank you, josespg, for the explanation link. The variables are no longer black magic.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Mon Feb 01, 2016 4:42 pm    Post subject: Reply with quote

josephg wrote:
ok NeddySeagoon thanks.

khay, i removed all the other packages. the only one remaining is x11-misc/redshift, as i don't know of any alternatives.[/code]


sct exists precisely for that purpose, fyi.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Mon Feb 01, 2016 8:41 pm    Post subject: Reply with quote

josephg,

I still smile at the title of this thread when I recall all the stuff we have suggested you install. :)
All for good reasons though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Tue Feb 02, 2016 11:35 am    Post subject: Reply with quote

josephg wrote:
http://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS

although i'm not quite sure whether the wiki is correct about how it is implemented. at least on my install USE_PYTHON wasn't defined, and portage didn't respect the eselect choice.


I wanted to tweak those yeasterday, but my box seems to want need 2.7 and 3.4. (could not get rid of one of those )

Code:
ASUS-G75VW roman # grep PYTHON /etc/make.conf
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"


I kicked out a few packages yesterday. sadly 2 pyhton slots and 2 ruby slots needed for some reasons.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Tue Feb 02, 2016 11:53 am    Post subject: Reply with quote

tw04l124 wrote:
I wanted to tweak those yeasterday, but my box seems to want need 2.7 and 3.4. (could not get rid of one of those )

Code:
ASUS-G75VW roman # grep PYTHON /etc/make.conf
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"

tw04l124 ... but you're stating that it should provide both 2_7 and 3_4, so that seems to be what's happening. I'm not sure why you would then have PYTHON_SINGLE_TARGET="python3_4", this should be 2_7 as not all packages will support the 3_4 slot, and if both 2_7 and 3_4 are supported then a "SINGLE" would be redundant. AFAIK, PYTHON_SINGLE_TARGET defaults to 2_7 as this is, or was, the only slot which is expected/required ... I'm not sure you can do without it. That isn't true of 3_x, unless something explictly requires a 3_x slot, then you can set PYTHON_TARGETS="python2_7" and do without 3_x.

So, if you want one slot then 2_7 is probably the only option.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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