From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QEKWKGH0JWTfUgAASxT56A (envelope-from ) for ; Thu, 30 Mar 2023 22:43:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8EVgKGH0JWSWEQAAauVa8A (envelope-from ) for ; Thu, 30 Mar 2023 22:43:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F2BCB6EF9 for ; Thu, 30 Mar 2023 22:43:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phz6u-0006FS-N6; Thu, 30 Mar 2023 16:43:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phz6t-0006FD-22 for bug-guix@gnu.org; Thu, 30 Mar 2023 16:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phz6s-0001Yi-ML for bug-guix@gnu.org; Thu, 30 Mar 2023 16:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phz6s-0004pA-8g for bug-guix@gnu.org; Thu, 30 Mar 2023 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62448: [PATCH] doc: Note that `guix shell` should contain base language packages. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Mar 2023 20:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62448 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret , Skyler , 62448@debbugs.gnu.org Received: via spool by 62448-submit@debbugs.gnu.org id=B62448.168020895818515 (code B ref 62448); Thu, 30 Mar 2023 20:43:02 +0000 Received: (at 62448) by debbugs.gnu.org; 30 Mar 2023 20:42:38 +0000 Received: from localhost ([127.0.0.1]:59532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phz6F-0004oD-HM for submit@debbugs.gnu.org; Thu, 30 Mar 2023 16:42:38 -0400 Received: from jpoiret.xyz ([206.189.101.64]:54976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phz6C-0004o5-Ft for 62448@debbugs.gnu.org; Thu, 30 Mar 2023 16:42:21 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 7BB961851DF; Thu, 30 Mar 2023 20:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1680208938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tib3CggUwTpal7TCJbSWJWL2FW9+IOqzd5szrKqm5a4=; b=Zl6eHfCjZlB0EDWjZmJ+tCovvFDJPBVjpeRXX1Gs00t2CV7ptusr1Fx/NoTDQYqwJ3bYPB S0j7B/hRIj/+6eCRzL6Tswcv/6MebA/5n4+jfEWVWnnBILBBp0YcN263iRcvP2luu//aUr FI114XEmdzRIS+tLgAZjBhnkfg3YOmmU4Xdnvmb0SwVF5S2bPaHBEsSf6v3Q3zecOflkbt mXLvBvUCkz6CUH/ypJTAi6B+25RVpfYr9usWgLgNhfs+P0wIAi2w730InKXS4Pc0wOW/Z9 kSiQUUb4ecUqry4zA/exBi0tMFpqLv51ydrsr2Fzs9C4L/StHDxSOnZ4qhykaA== Date: Thu, 30 Mar 2023 22:42:10 +0200 Message-Id: In-Reply-To: <87fs9mrnqi.fsf@jpoiret.xyz> References: <87fs9mrnqi.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680208993; a=rsa-sha256; cv=none; b=AP97g6fxm6vFSUnHHBWvjjYevCCjfNXQ3pPiTVve8swPa2aP+8l6Hf6WkHSV+u/vVdL44K oFymWDNARlt+KM+w/C48nFkPytfBoAvctQWIvCVi083DxTvBL249YZhglAgzw9EdmD9ECw W8ygtd/3fuj22uqC7qu0/YvUulLpeYtqfgg0PoFbfB2NomC/55h12+QntdohsOW9f9cy0y WO80gKPV9tvu5Q+5rBmoavFycn5lLrKH5g/6WaUiQ/Uvt4t1ZdNRBIKBUBCcRamjd/cs6X MfLS2pGhhTPk1jDjwyK1431JHi82emUjXl2H9NiglJ3lLo1cstcrbCVmM3kbyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Zl6eHfCj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680208993; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tib3CggUwTpal7TCJbSWJWL2FW9+IOqzd5szrKqm5a4=; b=kVlez7a5JRfZ3LL+KliWZy7PAUjbk3T6vR/5jPf6EHK5WxUgEcf/ykgi6bpHiaDOBYmKxb Kp0aQdZX3vD6TgPOUrSI0B5uryAYHxlRbu7D5/AUkzfC6PWvZWtrFBXSu/WnDk/EdHXdnJ RhDnXPHsTL/2T8zkabWigdlaBAJFy2DxjHADZPDA5S2LAHEJ3w3acgYBOe5YSjXPrbiOyx YJeysfDXq1e13OtCZwngZarS/P+7TRBO4xMRAV16Xqt5qj4ujdroLHhVEmLimlQ+7I79ix T3hbdxcQpJkcni1KSfzwtZxBu1jw1e1E3KnAfOuVrB9aE/ofQA1TcVQ4fgvWvA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Zl6eHfCj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.52 X-Spam-Score: -2.52 X-Migadu-Queue-Id: F2BCB6EF9 X-TUID: vDXxaclKNKbJ * doc/guix.texi (Invoking guix shell): Explain that python must be included in the invocation even if it is already available in the external environment. Suggested-by: Skyler --- doc/guix.texi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/guix.texi b/doc/guix.texi index c49e51b72e..879a526b77 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -96,7 +96,7 @@ Copyright @copyright{} 2021 Domagoj Stolfa@* Copyright @copyright{} 2021 Hui Lu@* Copyright @copyright{} 2021 pukkamustard@* Copyright @copyright{} 2021 Alice Brenon@* -Copyright @copyright{} 2021, 2022 Josselin Poiret@* +Copyright @copyright{} 2021, 2022, 2023 Josselin Poiret@* Copyright @copyright{} 2021 muradm@* Copyright @copyright{} 2021, 2022 Andrew Tropin@* Copyright @copyright{} 2021 Sarah Morgensen@* @@ -5959,6 +5959,14 @@ building or downloading any missing package, and runs the guix shell python python-numpy -- python3 @end example +Note that it is necessary to include the main @code{python} package in +this command even if it is already installed into your environment. This +is so that the shell environment knows to set @env{PYTHONPATH} and other +related variables. The shell environment cannot check the previously +installed environment, because then it would be non-deterministic. This +is true for most libraries: their corresponding language package should +be included in the shell invocation. + @quotation Note @cindex shebang, for @command{guix shell} @command{guix shell} can be also be used as a script interpreter, also base-commit: be5e280e5fe26f93bd5a6e3f76e4502edb913a94 -- 2.39.2