From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8IZTF8ZxWGdKxAAAe85BDQ:P1 (envelope-from ) for ; Tue, 10 Dec 2024 16:52:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8IZTF8ZxWGdKxAAAe85BDQ (envelope-from ) for ; Tue, 10 Dec 2024 17:52:22 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lganW12o; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FJmHzrIh; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733849542; 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: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=yERvXfSQJFdLHOKuZ/K20txYlRo0NGy0kcq0eLu4qsE=; b=uNOywLrLhqMB5+GUKeNIenj1KN+OGn4lG7N4Y7Wn08z7S0Fax5QvjU6emBZ0diSLRMrUqI MPmsTfPTX1uew2k4iB5vDy+H+4QUg9jUgs0WkLU7HIqgPof8jAbpDY5aSf0qXJaCeWHkRi LxCGkCrNeiwq6V/UCviXWiSd0k+Y7Q6Ycfdodlss6nmXM+dt+a5/X1YgWLQI9qb0Z6m4KA 4Z1OiQXE0sINsZoS9uNa9HoRvA7TfGvMTglVf0f4o6ZRvICW6dhZvq72/WkVa3dAaAmz5K Wi16W7ohostM4EEv4So0RwGX+gQI4NknnpKphAjV+HWeD5TE2Usq/NNPoGx7Kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=lganW12o; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FJmHzrIh; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733849542; a=rsa-sha256; cv=none; b=eu6OjQ0cVAsHHHUHBW8Ugck6GmKgl/1y3+NTl2wBrfjfyAxB4fTqCCEhmSCn7ayXkiHRvM ccJQ7yssqJ8YC4yhWAjjsGNc7GDx1QER8+OvCwJBlu/lm3q3p8nOecNYmhB1H8BD/t1tr+ IqymGAw+FRfB4DM2Ne8ZIeZAWNiBna/MJAr6E4zpg6yK7iSrmnC26ILzYgTszwdxyQREbn C/xg/srSUpFKuO3/snCe71aTQQ289mgKTCXJPogHgCAYxepQ1yvFES2Ycm54xMINJMUKvo duasNKG+OWBNbl6pGSoSqtU3TJM+OZfVSTWEMr/+Hev/KLPRRXlrJgjQMIgZZw== 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 1050A91678 for ; Tue, 10 Dec 2024 17:52:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL3SN-0002Mg-NF; Tue, 10 Dec 2024 11:51:31 -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 1tL3Rx-0002IK-Rl for bug-guix@gnu.org; Tue, 10 Dec 2024 11:51:08 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL3Rw-0004Jr-ON for bug-guix@gnu.org; Tue, 10 Dec 2024 11:51:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=yERvXfSQJFdLHOKuZ/K20txYlRo0NGy0kcq0eLu4qsE=; b=lganW12oZTLZDbtg5fKFg8esVsn6tviFC49KBaXSXh3me8wX7OLQPQeSscAiiShbsWPlqeDO/sOStSZlb8G504DKbeWc+2S2qyN/O+blbhHL55pSxWYXAoNpXRj9BzivUbtZV5m9Wlf6d6nzR6SXi9mY+YzXGTbHsyLwR2TNDsZDy9G2sGTDvG7Lukcuq4O4Hled21KGSlm1X9YPZY1zagq5YcWNG1Jvm4qBGsHLQJ+rcK0UbrTotRSkopLJvX7AxWqbFYX9lyznR8PFBBg9FSc6emCqU59D7erzxMd5lAGMKB9SWHHo0iDSveIIvlyI7RjV+vD04bdgIB1Y5JPHFA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tL3Rw-0005ul-9d for bug-guix@gnu.org; Tue, 10 Dec 2024 11:51:04 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#73816: python-django's manage.py tries to use a hard-coded python executable Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 10 Dec 2024 16:51:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73816 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Gabriel Wicki , 73816@debbugs.gnu.org Received: via spool by 73816-submit@debbugs.gnu.org id=B73816.173384942822515 (code B ref 73816); Tue, 10 Dec 2024 16:51:04 +0000 Received: (at 73816) by debbugs.gnu.org; 10 Dec 2024 16:50:28 +0000 Received: from localhost ([127.0.0.1]:59331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL3RL-0005r3-Ob for submit@debbugs.gnu.org; Tue, 10 Dec 2024 11:50:28 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:47291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL3RK-0005qu-60 for 73816@debbugs.gnu.org; Tue, 10 Dec 2024 11:50:26 -0500 Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-385e27c75f4so4293497f8f.2 for <73816@debbugs.gnu.org>; Tue, 10 Dec 2024 08:50:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733849365; x=1734454165; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=yERvXfSQJFdLHOKuZ/K20txYlRo0NGy0kcq0eLu4qsE=; b=FJmHzrIhgUWOQEhdUhXiefAzG2WSApBSsWP0VmpncUlxzvWkNSqvtpl235w3qyf7Y5 QuYYzbZuHQMvDu3ZXbgR44q8oo1KUUWAmaJCnMLo6cicMxkWg4tIdhTgJViJ/hOtSsaf d8xS9+HKU3NtgOurTAPaH942EB50AwYPn8o24n9lXeW9ZaH14RTFxo1dTB4yA2Y+2csJ ciKdRzaUsy5K0HwPDYC7zdMF7eLoJrdK7fcXqVCP1kXdxhZKDJy2uSqZ6uFnb0zRjmhn 2MOuYQX0l4D3+RSVGfztpM5kdikl3uaT7pwbPaXLu/Lo6mSa8XArFShl/Inu/bx/aHLR CfxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733849365; x=1734454165; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=yERvXfSQJFdLHOKuZ/K20txYlRo0NGy0kcq0eLu4qsE=; b=p5ETo2X761KCi+4esC+DTgM7qBig6wsGuSuBclsOubxgg4orexeH1CEPlDisNQaRLc o9qcoc7iTCNrApORysB/uWNc7xkO/fOayTe3FR8cPHJJ/OShHmJuREl1V+A6eDUDlc3q SYRSlmM++41g0Ja8H4/vVKjlR33ZF9ybvx73RI2o3dvZQ2mOaB4PnyNTchRCmq2YPiil LIStae0IbcfGBp/C8B09A4vI44/PRZ/A8+t6Dj24KcekskHwKVgcmSTIvfWIhWSlMuAK fJgaC1KAZVdeihWZ93Fz4QNaitGprDSLZrkEZeQ07+pVoZYB4ktr5o9SOKNp+lwNKWet Nrjg== X-Forwarded-Encrypted: i=1; AJvYcCUs09dvkwhUNbJ0n9TkOgFw13eqgi/7wUL68gGfPaF+pS55PQ2UnN2kaf1c5Hb6QJGsdTzjFg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwbhfrA+cpSilrVnjNN1xtf+ZX2xFEjnPk+qAgWdmGcxNzLbQ+t 0PG6XGS69jx6hV7qb8ADsFI30EnXlgXtsaPv7srf4J+zEx7WcTt5p/TpOA== X-Gm-Gg: ASbGncs1ojCRX6Geh76LGX0y4Emoyb6rF6yCefo2qsdOdtEfzjZgmN5S9pEHJQ17lhS vxbLRtcvq5h3Dm3MICXODH0R7MdURALtnPCDmMYhH5vDUrIJXkjfZpgSsq2OwuHYEDQMm/r0HDn 7h9quIYYAumnEJaejkjySvPOOJrfhoSZeJ7hG7+/nVl23wqAvOwHiDpILVaO+GrBhG4kFaOtNBZ Sau7MIvR7+MfcfbU8lUY3nPqxdK9oMcVwpXbwzvLknu7mS3Kg== X-Google-Smtp-Source: AGHT+IG+gsoy3R1GRHsz31oV5TO3ux8UdPgQcvtEkrzvlSMs5b07qubaKeW3AZzNDOBJ7GW5kEHhxw== X-Received: by 2002:a05:6000:1a88:b0:385:fa3d:1988 with SMTP id ffacd0b85a97d-386453c625bmr4019483f8f.8.1733849365509; Tue, 10 Dec 2024 08:49:25 -0800 (PST) Received: from lili ([148.60.59.223]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3861fd46f1bsm16255185f8f.61.2024.12.10.08.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 08:49:25 -0800 (PST) From: Simon Tournier In-Reply-To: References: Date: Tue, 10 Dec 2024 16:59:27 +0100 Message-ID: <877c87zfz4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , 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 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -0.58 X-Spam-Score: -0.58 X-Migadu-Queue-Id: 1050A91678 X-TUID: gJfF90jOM85C Hi, On Tue, 15 Oct 2024 at 11:48, Gabriel Wicki wrote: > The python-django package makes the admin utility create a manage.py > file with a hard-coded python interpreter. > > $ guix shell python python-django -- django-admin startproject foobar > $ head -n 1 foobar/manage.py > #!/gnu/store/my2j5bzapayk59971z2ryzlajdz569f9-python-toolchain-3.10.7/b= in/python > > I think this is wrong. The interpreter line should be > > #!/usr/bin/env python3 Well, I don=E2=80=99t know if there is a rationale for this choice. Someho= w, my understanding is: 1. python-django is byte-compiled using one specific Python interpreter and 2. what is the guarantee that the whole code byte-compiled with different Python interpreter will run? Hence, that version of the specific Python interpreter is encoded. Now, if the purpose of =E2=80=99django-admin startproject foobar=E2=80=99 i= s to only create generic configuration that does not depends on any Django or Python version, then maybe it could be considered as wrong. :-) Else I don=E2=80=99t know. I remember having a similar discussion about a similar Python tool but I am not able to find it back. Cheers, simon