Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"One Architecture, One OS" also translates as "One Egg, One Basket".


devel / comp.lang.python / Re: pip/setuptools: Entry points not visible from pkexec-root-environment

SubjectAuthor
o Re: pip/setuptools: Entry points not visible fromc.buhtz

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

<mailman.1246.1671438997.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25204&group=comp.lang.python#25204

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: c.buhtz@posteo.jp
Newsgroups: comp.lang.python
Subject: Re: pip/setuptools: Entry points not visible from
pkexec-root-environment
Date: Mon, 19 Dec 2022 08:36:34 +0000
Lines: 21
Message-ID: <mailman.1246.1671438997.20444.python-list@python.org>
References: <4NZn7V1JFkz6tpJ@submission01.posteo.de>
<CAPTjJmpvAXUqFw+mso6VD6OQCeUMh2Gou8mmfbdeBs63yfi0Gg@mail.gmail.com>
<f886ccff4e3b451827636c3f6c0db264@posteo.de>
<a9bb81c0-6cba-91ad-aa60-8354b6505928@wichmann.us>
<8dab758ebb1071c7854bf4e714d76450@posteo.de>
<CAPTjJmp=hVm=q64SetJQQ+AdE9ZGbhgnpEE3wVLVouu++bVK1g@mail.gmail.com>
<ea8075e7ee2c907ebdf932934c20f0e3@posteo.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de rIAoJVeceZDXH0DYfoaBxQoK6GA9DtOeYVnTnSb6u8AA==
Return-Path: <c.buhtz@posteo.jp>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=posteo.jp header.i=@posteo.jp header.b=mEJHtt/2;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(which': 0.04; 'pip':
0.04; 'yet.': 0.04; '(e.g.': 0.05; 'e.g.': 0.07; 'broad': 0.09;
'schrieb': 0.09; 'subject:not': 0.09; '"good"': 0.16; 'pip,':
0.16; 'setuptools': 0.16; 'setuptools,': 0.16; 'subject:pip':
0.16; 'subject:root': 0.16; 'to:addr:python-list': 0.20; 'maybe':
0.22; 'problem,': 0.22; 'installed': 0.23; 'run': 0.23;
'received:de': 0.23; 'python,': 0.25; 'chris': 0.28; 'it,': 0.29;
'question': 0.32; 'assume': 0.32; 'regard': 0.32; "wouldn't":
0.32; 'but': 0.32; "i'm": 0.33; 'there': 0.33; 'path': 0.33;
'able': 0.34; 'header:In-Reply-To:1': 0.34; 'subject:from': 0.37;
'way': 0.38; 'could': 0.38; 'thanks': 0.38; 'use': 0.39; 'case.':
0.40; 'something': 0.40; 'here.': 0.61; 'dear': 0.62; 'skip:b 10':
0.63; 'back': 0.67; 'foreign': 0.67; 'skip:/ 10': 0.69;
'solutions': 0.70; 'received:185': 0.71; 'apologize': 0.81;
'subject: \n ': 0.84; 'magic': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.jp; s=2017;
t=1671438995; bh=pJsBApS8GeM03iVDFkH45d6vicLutHStkKMAJs+81BY=;
h=Date:From:To:Subject:From;
b=mEJHtt/2tO6EyZMIoLS50GoLxjRU1d5zDxQakfEUnWTNBRWRQDUdqVJpEJ7F6/RMe
b4jnf0xLMxkm+X+lDKqzoIYjAvrR4QGa/0NSePGx0/NWuGL39rZ7WvvJmWvfyxhTVk
vK+Id3bRO9pVyiKx+Fl+shbw9tDFkHDMY+cOfxpk8xpJ+HxkXpUHnOrTaUGuas6iYo
F+wBBrKbvpmxsmt/t+xUSiyAsOjqk6Kc4qZNpZyp4IxAOrA2JSwvcetG1tlrLst3NL
+chuwk044Z+t/65AKEldRgwMo0Qxf8Tb6nffNtkLo1tQK9AapNiHzASBrBNBvPqe4o
Pz//zuVUTCAXQ==
Mail-Followup-To: python-list@python.org
In-Reply-To: <CAPTjJmp=hVm=q64SetJQQ+AdE9ZGbhgnpEE3wVLVouu++bVK1g@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ea8075e7ee2c907ebdf932934c20f0e3@posteo.de>
X-Mailman-Original-References: <4NZn7V1JFkz6tpJ@submission01.posteo.de>
<CAPTjJmpvAXUqFw+mso6VD6OQCeUMh2Gou8mmfbdeBs63yfi0Gg@mail.gmail.com>
<f886ccff4e3b451827636c3f6c0db264@posteo.de>
<a9bb81c0-6cba-91ad-aa60-8354b6505928@wichmann.us>
<8dab758ebb1071c7854bf4e714d76450@posteo.de>
<CAPTjJmp=hVm=q64SetJQQ+AdE9ZGbhgnpEE3wVLVouu++bVK1g@mail.gmail.com>
 by: c.buhtz@posteo.jp - Mon, 19 Dec 2022 08:36 UTC

Dear Chris,
thanks for asking back and my apologize for being to broad in my way of
asking (in a foreign language).

Am 19.12.2022 07:40 schrieb Chris Angelico:
> Hmm, then I'm not sure what you're *losing* here. The problem, as I
> understand it, is that the scripts are getting installed into
> /usr/local/bin (which is on PATH at the time they're installed), but
> pkexec has a restricted PATH. So if you use which before pkexec'ing,
> wouldn't you find the scripts, and then be able to run them without
> regard to PATH?

Absolut correct. This works.

The question is if this is a "good" or "elegant" way from the viewpoint
of different communities/projects (e.g. Python, setuptools, pip, other
build-systems, distros, something I forgot).

I assume that I'm not the first person with such a use case. So there
could be solutions out there. Maybe they are standardized solutions out
there; e.g. a magic feature of setuptools or pip I haven't noticed yet.


devel / comp.lang.python / Re: pip/setuptools: Entry points not visible from pkexec-root-environment

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor