pip/setuptools: Entry points not visible from pkexec-root-environment

Barry barry at barrys-emacs.org
Sun Dec 18 16:33:22 EST 2022



> On 18 Dec 2022, at 17:57, c.buhtz at posteo.jp wrote:
> 
> Hello,
> 
> when I install a package on a GNU/Linux system via "sudo python3 -m pip
> install -e ." that defines entry points in its pyproject.toml the entry
> point starter scripts are located in /usr/locale/bin.
> 
> That folder is in PATH for "regular" root users and by "sudo su" roots
> users.
> 
> But I need to start that entry points via "pkexec".
> But in the environment started by "pkexec" the PATH does not contain
> /usr/local/bin.
> 
> So what can I do?


Why are asking on this list and discuss.python.org?
Lots of people on this list are also on discuss.python.org.

Barry
> 
> I don't need a hack or workaround but an "elegant" solution.
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 



More information about the Python-list mailing list