From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UGK5Ef/YiWOHYwAAbAwnHQ (envelope-from ) for ; Fri, 02 Dec 2022 11:52:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yFhkEf/YiWOjZQEAauVa8A (envelope-from ) for ; Fri, 02 Dec 2022 11:52:47 +0100 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 94D0E1A66B for ; Fri, 2 Dec 2022 11:52:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p13eb-0008R7-9c; Fri, 02 Dec 2022 05:52:25 -0500 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 1p13eZ-0008Qp-00 for guix-science@gnu.org; Fri, 02 Dec 2022 05:52:23 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p13eU-0007gR-Ag; Fri, 02 Dec 2022 05:52:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Xs9Eo8mfJ295DRC7O1DtNpjR0PX8FYQl7xfdUVLaYL8=; b=RIZWkUnn82u7je26l1GT yE6hamJrckoqbTlImQ2FBogEMWC10JtoqN6pfSZBnp3EO5UFeuLuy6fpStYiJeTTbCBx1pLtu+rr4 OID0ruonbmg6CrGiPLvZPGwkeO/KHel0rIOWWaEuVNgxuIMaTEAoCEIdK16KcjaVz1BkSPww9DDrT s03NdVc84Tz9/H7+mjcDBrH3lmk8ff+lfn6EdtJFOLjkq/fc25C18v71mORH/SivvSu+KLQO7PIk9 1z5+1V5H18M2s3F5cB8u06W3FPypntkrQLRhbiqcW6Y4Ep1ekl5eA/kZM36WN2zOPzKv5iwGwiw+3 1aW/nCCedIYEBQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p13eQ-0005ip-UA; Fri, 02 Dec 2022 05:52:18 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Hugo Buddelmeijer Cc: Thibault Lestang , Konrad Hinsen , guix-science Subject: Re: Conda environments and reproducibility References: <87pmd7ar8k.fsf@imperial.ac.uk> <87zgcayre2.fsf@imperial.ac.uk> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 12 Frimaire an 231 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour du Raifort X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 02 Dec 2022 11:52:11 +0100 In-Reply-To: (Hugo Buddelmeijer's message of "Tue, 29 Nov 2022 14:12:55 +0100") Message-ID: <87tu2et6w4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669978367; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Xs9Eo8mfJ295DRC7O1DtNpjR0PX8FYQl7xfdUVLaYL8=; b=qVxnJNX7jmksUK1b+/PHjZUo5g8nVUCNpld4ntjs4WRNBrzlpBnS3iWJIrk/n88t+cELlg pUN9DSuiWviPJr0O/C9dJjXdT5iv2GvWtnkh85jYZQdKq3nOMIeUvg2gRVXUmyisuUtURp 1s7mGj3KYmIpLEqMAti+3k4srD+x6AldxzcIHv5X9u0LBPNcuEbBy0YysYSD2AvcZjj29R l/gyBs1yM+qGLBUbMLiwy+AcRLmXH6BOCkWBagAbp/yFpqaLUge7e9mUwvH3hxRWLJUx7u mQbC4VZIi6VAQ5Eqn8wgHxQV1J1cp8nPlWEqW+JPEHVwpEowx0fNZtKVAiEqTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669978367; a=rsa-sha256; cv=none; b=R+LyT/pql8RnWPzyyiSwhpw6eRYs/5PLn7kFpb2aLX7tZn6Qna03HpX1QpUirnN7Zkrczt atxzj1OUUr/LRUtoiELWK3+cF4sa0ifWFVguD6co18xi6Y2V6DFvdA8zaaLOGSfe9ltM7L Yf8vLP/rQHe7LvGucPyKwhwskseXW5wL2Urs8NTRMcsj82s/nipkTWZ8W0u0aBjb27Y+va g1BthlhqNSVdLYD2WTORXicMvbdNbW+sveT7EdZUNQllgUTiR8iiO0hZAUe18V6lscjiMq AfayueI4e0376iQW4LgMgq1Y1yYv+lgnlPfolSplnHCoVLPWPBXRJ7a++UNjGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=RIZWkUnn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=RIZWkUnn; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 94D0E1A66B X-Spam-Score: -3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: oO9z2+2iDTFZ Hi Hugo, Hugo Buddelmeijer skribis: > By the way, it is quite hard to use conda in guix, primarily because "con= da > activate myenvironment" will try to set PS1 by calling a bash function > called 'conda'. This bash function calls the 'conda' executable, which > takes PS1, modifies it, and returns it to the bash function. The bash > function subsequently sets PS1 (and makes a backup for deactivating the > environment again). However, the conda executable is replaced by a bash > script that calls conda_real. And bash scripts eat PS1 (because it is in > non-interactive mode), so conda_real gets an empty PS1, fails to modify i= t, > and then the bash function sets PS1 to nothing. I've got it working > properly on my machine, but don't feel comfortable enough yet with Scheme= / > guix to provide a proper patch. The simplest might be to use another shell > for the conda package (because I believe only bash eats PS1); not sure > whether that is possible in guix. And I would rather make guix packages of > everything and ditch conda altogether. But supporting conda properly would > help more people transition. Could you email it to bug-guix@gnu.org so we keep track of it? Even if you cannot provide a patch, that will be a first step towards fixing it. Thanks, Ludo=E2=80=99.