Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Forcing specific python ver as 1st choice 4 an app[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3624

PostPosted: Sun Jan 01, 2023 11:01 pm    Post subject: Forcing specific python ver as 1st choice 4 an app[solved] Reply with quote

Here an desktop app thar launches
Code:
cat /usr/bin/pgAdmin4
#/bin/bash
cd /usr/share/pgadmin4/runtime
node_modules/nw/nwjs/nw .
This app can only be build against python3_9.
And the above desktop file snippet only only works when python3_9 is selected as default.

I'd rather not have python3_9 to be selected as first choice here.

Any idea how to patch to wipe this constraint away?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Jan 02, 2023 2:10 am; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21624

PostPosted: Sun Jan 01, 2023 11:21 pm    Post subject: Reply with quote

Set PYTHON_SINGLE_TARGET=python3_9 for this ebuild. That should cause the ebuild to set this up properly.

If you need to override it at run time for a single user, the README for python-exec suggests that setting EPYTHON can control what version is run.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3624

PostPosted: Mon Jan 02, 2023 1:02 am    Post subject: Reply with quote

Nice,
Code:
diff /usr/share/applications/pgadmin4.desktop /usr/local/share/applications/pgadmin4.desktop
4c4
< Exec=/usr/bin/pgAdmin4
---
> Exec=env EPYTHON=python3.9 /usr/bin/pgAdmin4
did the trick, indeed.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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