From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: PYTHONPATH woes Date: Tue, 20 Feb 2018 16:18:40 +0100 Message-ID: <87a7w3r8of.fsf@igalia.com> References: <20180220150135.GA20101@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eo9hZ-0003tN-UZ for guix-devel@gnu.org; Tue, 20 Feb 2018 10:19:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eo9hV-0004lL-UD for guix-devel@gnu.org; Tue, 20 Feb 2018 10:19:29 -0500 Received: from pb-sasl1.pobox.com ([64.147.108.66]:64728 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eo9hV-0004XK-P9 for guix-devel@gnu.org; Tue, 20 Feb 2018 10:19:25 -0500 In-Reply-To: <20180220150135.GA20101@thebird.nl> (Pjotr Prins's message of "Tue, 20 Feb 2018 16:01:35 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel@gnu.org, Ricardo Wurmus On Tue 20 Feb 2018 16:01, Pjotr Prins writes: > On Tue, Feb 20, 2018 at 11:53:54AM +0100, Ricardo Wurmus wrote: >> Would it be good to make the wrappers for Python scripts stricter and >> not accept any user-set PYTHONPATH? > > I think that is a bad idea. You need to be able to opt out. Why? I am not sure this is the case for programs that just happen to be written in Python. > That should come with a health warning ;). Similarly we should allow > for LD_LIBRARY_PATH etc. It is what they exist for, even if it is > dangerous. In Guix we don't set LD_LIBRARY_PATH but we do set PYTHONPATH, so it's not quite the same I don't think. Andy