From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 iMoOA1PTR2PmIwAAbAwnHQ (envelope-from ) for ; Thu, 13 Oct 2022 10:58:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8P8lA1PTR2MD6AAA9RJhRA (envelope-from ) for ; Thu, 13 Oct 2022 10:58:59 +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 C3CDD22062 for ; Thu, 13 Oct 2022 10:58:58 +0200 (CEST) Received: from localhost ([::1]:33992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiu3N-0000kz-Qg for larch@yhetil.org; Thu, 13 Oct 2022 04:58:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oitYN-00045t-PU for help-guix@gnu.org; Thu, 13 Oct 2022 04:26:57 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oitY4-000471-Ng for help-guix@gnu.org; Thu, 13 Oct 2022 04:26:54 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4BFB24DB62; Thu, 13 Oct 2022 10:26:34 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NmIVIk_ZfVFU; Thu, 13 Oct 2022 10:26:33 +0200 (CEST) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1665649593; bh=Gdq0+0v0rZg1+TAZHpz5nh0s36f70q+OqR1JZls/8aU=; h=Date:To:Subject:From:References:In-Reply-To; b=jP4dFNT7lt4x1S8mH6uf0dPzZpKNFqjfjlKH50upWoYQ8KRHRaiS47QsCdFexWA1Y 2fp4TRgK/XYOSab4sFq/SELK2ZA+PVZVDRJ0VtziQNPYjdD8NgQ5Q4UxUgpOBSUjoU cMzMdY+A+8ApLHglQt1sM5HGmasanUt+FcXLodEZO7ugCqNvYMCqYJUHcU+lSdbSt+ m06O4rQsNqRdhdJeSiAbMg2xL0wKTBhyqv/5zbGORSUsOtm+YxS9jqsg6uU57G1KpI xefA9cfdC8lZ9r8JiuDYmm0RqvdSvaRS2sng6+E5RXyg12TG25YLqUh7KSAu1O7Puh cbARGHuZAuZNg== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 13 Oct 2022 09:26:32 +0100 Message-Id: To: "Wojtek Kosior" , Subject: Re: program prepared with `guix pack` unusable by end users From: "(" References: <20221013091722.59d9ecc0@koszkonutek-tmp.pl.eu.org> In-Reply-To: <20221013091722.59d9ecc0@koszkonutek-tmp.pl.eu.org> Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" 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=1665651538; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=JPmb01kkFNg93+oijJW/c1IOBnT2bQxY4S21tckQSPs=; b=sWb+d9eFwFGp9ElFmFCHYgx+Mjl27qSmrJuuemP00eZhdWKJ2Nu+A6Ks19+7V6eaZMaXm5 /HSxoMgO6nrYoUM00IISUBjzLsaeawSsTqCftw9/bAZ4t5wluCfUz2DkMs6UpdNByvkS4z bCYCTpKBk2K5TsZKXBuM1mRrXcmvrkAN/MZPtjrqxWAinTMeMt4ya2xwMfzdNHLEyrOaJI Z/kxjXGXQoR9TBxrcBoE3oUCDiMkIZwFYh5fd8AV5DgGP1EddAfJbV/+ME8IG/ouff51Yy 4Gh2e2cGgH8kc9hJVMcZAMNDYwHWMTlg3cKHEmw/XuhQDadu7XvOOdPwre/AOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665651538; a=rsa-sha256; cv=none; b=p/MmFeWq9b4lDeF6GR/wzOAyuQDHfevkKDXkzdLKWvw3IT/8wh5dITHaPsZPB217nmdkBI H7nNn14Gu/NyT+1fO8k5OZ0ZdTrvzWy8shdbXT8HWkl21ZFELiLdvh1K/kO0nazZklLGzk QUsaQlZ2UtXx1HVV9F/M8dRGVwkMrF7jb2XuPDolWzIKksRXjJL7Ahvn5tfuYuWIlr4Ngf Wrs6sPSiVbGxJwAvmdZrw5YAwkbyzS/zXovf6qpe+Z483z6tOXzgpSNLTKnAJ8tHEuf5/E INAdk+mq41fKkkzVUmS5urUI02kHYEYMcZNxt1CW5FQF80FyOZxquwZt+8z4jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=jP4dFNT7; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.70 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=jP4dFNT7; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C3CDD22062 X-Spam-Score: -6.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: aUUIkAJyswBX Heya, On Thu Oct 13, 2022 at 8:17 AM BST, Wojtek Kosior via wrote: > > guix environment -L . -e '(@ (hydrilla) hydrilla)' -- python3 -m build = -s > > guix pack -L . -RR \ > > -S /hydrilla=3Dbin/hydrilla \ > > -S /hydrilla-builder=3Dbin/hydrilla-builder \ > > -S /hydrilla-server=3Dbin/hydrilla-server \ > > -S /haketilo=3Dbin/haketilo \ > > -e '(@ (hydrilla) hydrilla-dist-tarball)' I don't think this is an optimal way to use ``guix pack''. Surely this pack won't contain the Python modules that the script needs to import...? Have you tried guix pack -RL. hydrilla ? Note that you don't actually need to use ``-e'', as the UI finds packages by scanning all the modules in the load path for public variables containin= g objects. Also, ``guix environment'' has been deprecated for a while now; consider us= ing ``guix shell'': guix environment -L. hydrilla # becomes guix shell -DL. hydrilla (``-D'' means "use the dependencies of the next listed package", as ``--ad-= hoc'' is the default behaviour of ``guix shell''.) -- (