Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to use both python major version in ebuild?
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
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Mon Sep 24, 2018 10:07 am    Post subject: [Solved] How to use both python major version in ebuild? Reply with quote

For example, ebuild for chromium has PYTHON_COMPAT=( python2_7 ). I want to add PYTHON_COMPAT=( python3_7 ) to have PYTHON_COMPAT=( python2_7 python3_7 ).
Is it possible?


Last edited by Perfect Gentleman on Tue Sep 25, 2018 11:17 am; edited 1 time in total
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Mon Sep 24, 2018 10:36 am    Post subject: Reply with quote

move from python-any-r1 to python-r1 eclass.
Code:
# setup python2
python_setup -2

# execute code with py2
...

# setup python3
python_setup -3

# execute code with py3
...
well, AFAIUI :o
_________________
hear hear
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1249

PostPosted: Mon Sep 24, 2018 11:10 am    Post subject: Reply with quote

thanx, I'll try 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