From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8LR0LHZYGGCyRwAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 19:37:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qM9LKHZYGGA6FQAAB5/wlQ (envelope-from ) for ; Mon, 01 Feb 2021 19:37:26 +0000 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 CD31E9403E6 for ; Mon, 1 Feb 2021 19:37:22 +0000 (UTC) Received: from localhost ([::1]:51572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6f0j-0002OB-IV for larch@yhetil.org; Mon, 01 Feb 2021 14:37:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6f0V-0002Mp-U5 for help-guix@gnu.org; Mon, 01 Feb 2021 14:37:07 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52758) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6f0R-0005DE-8s for help-guix@gnu.org; Mon, 01 Feb 2021 14:37:07 -0500 Received: by mail-wm1-x333.google.com with SMTP id o5so331713wmq.2 for ; Mon, 01 Feb 2021 11:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version:content-transfer-encoding; bh=WRq8uKKM0cYpAPLtmMfuN1pfya0Nx1RVm8Th6EOE2jc=; b=c6caBYminSzx1/WG30SzcpYGrPSVMa/1cEVPO010NEfIKMnrclOg3hDGsxlG3a0zT1 cc6XGPSX+IyhtcSU6m6YFO4ekSmc9fROsNQvCrCgkXNMj26QUgzeipaAfBsYkkd6rEiS hqF9UaGj7eKGlDuQK5rJ13DTJCElwu8YlP3/oAhdexbyl6oolaIcthPsWFemkEziZFKf CajbNMO0rXtmaYdDKR96wiaUYA/MKaC2i4ezbrG1soXUpPfFCWyfNcWMfj9KUCGQ+w6e uW35+DC+j1iUmChjGMdGJdcSNW2FehMyGTmp8ZVc2mmoD15b/1cDMRTVA1tqqej5VGRt EW8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=WRq8uKKM0cYpAPLtmMfuN1pfya0Nx1RVm8Th6EOE2jc=; b=k5HkA7J2IsBfPdrYNjTx2c5dtgkXDaKGJ9ExXbPqHOkPe3Qq4zKvTl9dJXtF3CF8oj xRmIri0eTEaDJ/O7SYhe+EfNoouUV6SByRhx+5W2xnZA15UJG+dHHUQD6LwBbaybR14u 7xuvCSuK/zVzWTnmRzcuDsdb+snYuMMEk89IB789f+rx3xATfgUR1zdcoazLB1QUJn0q ViPKonaGmgZD7ebbCzjgomP7ELPR333VkT/csOLRviJCo4GzsC/XBV9bnI5LUCqO8XWY pC3FnDBpqdfyNqmLWsMDC1LqPSDlHx1YgMLS0OfTYOeHpywrSzmshB0cYUHDCSpQGbg5 rbnw== X-Gm-Message-State: AOAM532SWls4dHSr8qRPmvNWmenFBYxx/4LsxgZar265RvjvQliZ0EHu rA5V2gIbq87iQaBrD/IunGlOmivPIHyXARFJ1HQ= X-Google-Smtp-Source: ABdhPJyUJpFQC1mwxHEmvdAkQNBvEcuVhNND1jtelM7heNM+Bp/QzghiBIXxpLfQzSv/PQnrhI77Gg== X-Received: by 2002:a1c:a7c5:: with SMTP id q188mr399521wme.108.1612208217978; Mon, 01 Feb 2021 11:36:57 -0800 (PST) Received: from phil-XPS-13-9360 (host-78-147-225-8.as13285.net. [78.147.225.8]) by smtp.gmail.com with ESMTPSA id s203sm288930wms.25.2021.02.01.11.36.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Feb 2021 11:36:56 -0800 (PST) References: <85zh0pdzyn.fsf@beadling.co.uk> <87v9bdno7b.fsf@dismail.de> <87zh0oh8se.fsf@nckx> User-agent: mu4e 1.2.0; emacs 26.3 From: Phil To: help-guix Subject: Re: Output all dependencies recursively for package In-reply-to: Date: Mon, 01 Feb 2021 19:36:55 +0000 Message-ID: <85wnvreg14.fsf@beadling.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::333; envelope-from=phil@beadling.co.uk; helo=mail-wm1-x333.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=c6caBYmi; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: CD31E9403E6 X-Spam-Score: -2.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8dQ9JSF0/P1j Thanks for all the responses on this. In short - yes this does the job. I should really write it in Guile: guix refresh =E2=80=93list-transitive my-pkg | cut -d':' -f2 | tr ' ' '\n' = | grep python | sort I have a guix package that had originally been deployed with a python requirements file to create a venv. I was curious to see that, if I matched the versions in the requirements file, in my guix package what the full set of dependent python packages would be (i.e. those returned by pip freeze). Obviously there are some mismatched because pip often only gives requirements as a lower bound, where any given version of guix will typically only contain a single current version of a package. The specific weirdness I was looking at was my guix setup seemed to have installed both tornado5 and tornado6 python packages packages - a situation= that can't happen in pip! I was toying with writing a pkg2reqs.scm which would produce a python requirements file from a Guix package. I found it particularly useful to create this manually when trying to decide if my move to Guix had issues due to a slight version mismatch between PyPi and Guix, or something else.