From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MDXHLXn/xWC2ygAAgWs5BA (envelope-from ) for ; Sun, 13 Jun 2021 14:52:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AH5sKXn/xWAELwAAbx9fmQ (envelope-from ) for ; Sun, 13 Jun 2021 12:52:09 +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 1D43F8D44 for ; Sun, 13 Jun 2021 14:52:09 +0200 (CEST) Received: from localhost ([::1]:59770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsPax-0005oA-A3 for larch@yhetil.org; Sun, 13 Jun 2021 08:52:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsMEy-0002jJ-8o for help-guix@gnu.org; Sun, 13 Jun 2021 05:17:12 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:40928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsMEw-0006uO-Ca for help-guix@gnu.org; Sun, 13 Jun 2021 05:17:11 -0400 Received: by mail-yb1-xb31.google.com with SMTP id e10so11009552ybb.7 for ; Sun, 13 Jun 2021 02:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=EmPDxF3h/OA4XKwmbx/IQ4P9qqwubWAV6ElpHMgfe9U=; b=RQnWFADJyDAeid/MmcVuQ06VbLYrtQLF4gV+p2kbFdFrmv9hKMKJxjp1pVHyAIyaYC VMlyeFIcgU9ZDCHthhLX2lvvPj6uuLVOGW2dWkUHYs5tNMKv9uVAvQ33GZwOTGUFFf4O A3eIFlfBPek4C/bq6z1WwO8poJm+Riag+TA47Yc7gL/Rv/SfmkHIeybBRxwlHi5rGcd/ cGEEX34o26roPrvoZiLACwx+xVAhEooWR7+O4mILOcUimGkOecOg5FGGbZKL7Acg8IzY 8EuaRK+bSg3btYz8KTuFQ/BiNNpYPC5EUujc49ry5iWS7Wz3QX1n3rTNCr644wiDWejg 7XcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=EmPDxF3h/OA4XKwmbx/IQ4P9qqwubWAV6ElpHMgfe9U=; b=izlxSCTX2FqDy4vvFcKCDeZ/xWVIM4sH9CM5ROe9N1wQnsFgthIxOaVK2GF1/9fqns 3ZA1sr9RUadVhgcSDUvfQHhGRwpBCRP160LYLd5dZKDmj3kUrJ9JLggjNb1fzznI9GVc ofJLccxr0w1uhlX0KziW6CJ4/Bs4LNaeIgI4PZV1sTpHMLZBx9q1t/I82MVvRoLIv34s t915ofDFLqv01nlxrDoTld0ZW3JaB0qSwi9IBV9sIqbJTWXouCqBUNtz6hbb+iSKUt+8 pEJXJi0VC+bjksmPpOIS9sMbvhhLKMcBcSbO6Zn5Nz/Zna3aYtwfFx0d0XMACqfNNSs2 F34w== X-Gm-Message-State: AOAM531NeraUCUNvW+q6iHq+oS8AybWpWWJWRpyc+FLnz6DM9gvfmZ4h mD4Lsvt/X/hVQ0IFAIyYYwfIPDDF91i+p0uTOFnTePYz X-Google-Smtp-Source: ABdhPJxON3QMLcKdx+Dv2rC2yaaEGS0mnorY2coKABARdKxg+Lbt3O1C1gfm8RbuEyqGE6mfcUSN26+jsqdJZ/k6tdQ= X-Received: by 2002:a5b:d0e:: with SMTP id y14mr18124770ybp.207.1623575828952; Sun, 13 Jun 2021 02:17:08 -0700 (PDT) MIME-Version: 1.0 References: <87lf7qk64m.fsf@beadling.co.uk> <87sg1y8wuz.fsf@nckx> <87im2uk4vb.fsf@beadling.co.uk> <87pmx28sx0.fsf@nckx> <20210610104519.tauqzervutn7hexy@noop.avalenn.eu> In-Reply-To: <20210610104519.tauqzervutn7hexy@noop.avalenn.eu> From: Reza Housseini Date: Sun, 13 Jun 2021 11:16:57 +0200 Message-ID: Subject: Re: Shebang and python packages To: =?UTF-8?B?RnJhbsOnb2lzIEou?= Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=reza.housseini@gmail.com; helo=mail-yb1-xb31.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 13 Jun 2021 08:51:55 -0400 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: , Reply-To: reza.housseini@gmail.com Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623588729; h=from:from:sender:sender:reply-to: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=2aPYE2znPfy6Ing5n/8w9ZOPDUt0L+9SKsk1YPAKWg4=; b=GD+Uhfye7YQrqyo1NpKcRKZ9ntlU9zvc002Rn1zF4iUGzQra10kLS14JmDFREDOgVtS7Jd Kfs+yYXgDDaYKI32HNP9TNKVmJZhWcaXdxUbeStSKcY72V6D0dM6IxzVB5M/LyLhootTjw xLvOnVPtNsM9W4xxiTxixofD7rL5teVVpqol7ufne49qeTdgZ1cZ1zOd4Ue1Hdw3moAaqI r3mqZJRZWHSIS3UDu/f+/zomsGr+osylHyZVDM3l3Nbc7Pu6nXEEgOT70T8JQl9CPaDLI3 I11q78c3dXtOILtlkgeo84A+eO/epmNCTE3Dx/6JLQ3GEjJNj/4MEx4EY7Nrhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623588729; a=rsa-sha256; cv=none; b=WIjq5dlRJkKeBLG8LpdiuxE37TlptQYWhTYggiFThHfvcui9cXJ2JwMKYUJAqCztfd9wfb NJ0/R5jHSETI/Qhg5+LKtygTmEBqLmR/K/sePlHayMowlvOirgb8kAJ0QwgQNQ2BC3Z2RA P1L/P/K8iESvGrb8arnyA6m+E8LboidMHrP5Knbj49+HwKhaPUKudEOyozoGXYuvISskZA Uvf5fu6gd3kYLsQrk0+79vOaLeabP0cMkaqvJyJPCH6fBy6DWNC0ppzBxktv3vm8dacxPV bWWa7xrkDq9tTei+UaUZgKvfR8GeXLSDRbsQO1vzyYLC/hnUMxwqIXYuyHQG2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=RQnWFADJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=RQnWFADJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 1D43F8D44 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: ullvPUabZilE On Thu, Jun 10, 2021 at 4:53 PM Fran=C3=A7ois J. = wrote: > Hello, > > On Fri, Jun 04, 2021 at 12:50:03AM +0200, Tobias Geerinckx-Rice wrote: > > Propagated-inputs are a hack that says as much as =E2=80=98when the use= r installs > > package A, pretend like they also asked to install package B in the sam= e > > profile=E2=80=99. That is *not* a good thing! It's a work-around for = broken > > packages and packages that would be far too much work to package in a > more > > Guixy way. Propagation causes all sorts of problems and makes profiles > more > > fragile. Avoid it. > > Thank you for this explanation. I fighted a lot with the concept of > propagated inputs and this descriptions makes a lot of sense to me. > > I am progressively thinking that propagated-input are used too much > in Guix packages. Python packages seem concerned a lot by this but I > have not used Guix enough to know if it is localized there or if it > is generalized. At least it is a risk I am just identifying on the > way Go packages are done (and makes me think about how we can evolve > go-build-system to avoid this). > > I am not sure about what to do with that but reading this makes me feel > less alone. > > Fran=C3=A7ois > > As far as I understand it, are propagated-inputs in fact runtime dependencies which boils down to shared libraries. The proper way to handle these, is having them as inputs and tell the build target where they are to be found in the store during runtime (e.g. -rpath). So the only thing which is missing is a (guixy) way to hand over these gnu store paths of this shared libraries to the build system. At the moment this has to be done for each build system separately and it is not very consistent over all packages. This is my conclusion about propagated-inputs, please correct me if I'm wrong. Cheers Reza