From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 UPHeNGawE2fPngAAqHPOHw:P1 (envelope-from ) for ; Sat, 19 Oct 2024 13:13:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id UPHeNGawE2fPngAAqHPOHw (envelope-from ) for ; Sat, 19 Oct 2024 15:13:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TQ4uVRas; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729343590; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Hb4d1jZLv4WqdF8dZPJ7OVv/jL3QXmCjUnVyKFQhy4I=; b=Pxb4b/xFljK235z9o9ZoUun0wECu0qN2ngW2R5saokPpis4cTp8bP0zcePoqIqF5gxlR3z 5/TG3nwnbvDGHMY/ZP3js/ytXjsW4KwtiS+yg+c2weP6WPPbfE1AucJ6G2Ivo4AAx0xZDZ R75WGiCwh/m+c3572GcxoZD+e5a8yrd2qMT3SF7pH9G0w+Yw850yPHtSbyrQ32o/g/FgLr /EpT7AKiY0IYNw2mxd/dY//jC1FvGm+0h+cI88UOg488HvJjCZZolTlQutvuLZtSx1mzRD DvnhZGXBuFkL9ysfCO0H7DoOvRJWVSh5nv5lFHem0MIk4DHTzlGK+9GN9hsjaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TQ4uVRas; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729343590; a=rsa-sha256; cv=none; b=QwP5D4q/f6F7Mxw20dW/vNabe/1JKGQRHOFw5Rr1APusiOhLr0sMqEPdm/sOSdpzjFWDTm WvTdTjNAW2aU/AXtsY/MSK4SAT7QHsAmPp2Cgx8PiIDeVz0intzI4nkcaZMI+umjfpoRs5 K7/oeL0fI4YjlQHhlXdiy+dqM2NHHPhQ9RwSrzynGaFxZbh+RgSY8p8QW2aUHldIFY9Niq ZvRnrOh8tAeBldeDpHM5RVu4ryDBAA2qOFK2Db2NaqPbVHdY6LAsY3ZrmS/LzMLAgmUI0r uS0z975CbZS93n+YrofCpB6bDjJpt7HvTYXZNOD8vO+xmjJ7dT1wWztUhAMz2w== 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 61A9F4699F for ; Sat, 19 Oct 2024 15:13:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t29Fn-00033o-8i; Sat, 19 Oct 2024 09:12:23 -0400 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 1t29Fg-00033M-DH for help-guix@gnu.org; Sat, 19 Oct 2024 09:12:18 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t29Fc-0004vR-QL for help-guix@gnu.org; Sat, 19 Oct 2024 09:12:15 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-20e576dbc42so17903395ad.0 for ; Sat, 19 Oct 2024 06:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729343529; x=1729948329; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Hb4d1jZLv4WqdF8dZPJ7OVv/jL3QXmCjUnVyKFQhy4I=; b=TQ4uVRasvJybrtbK7gWoGSjAp14y6yLYOqbNzpooJTv2vJyzNxeSyvIvdLzvw7Iiu/ 2DC4E2/wb+sxu4bGzS4y3VHfBwskaK09jCq2+9YjLqBre7pwO2qxF9tbywjR06SVnzxk iwTWReIeZOtEAUCJz3C+prZGVVxsuUsXncDAV7GcziZR1U3z+KUallyQEMLxhsApKk9V R0ShGymwae8mCTTGsq0EZ+Om06QHN1X/Dkx4ZwFRq0JNAr9z3PgPTC68+pv1IzhQGrpC PJdKeHoGVAYlT7n7+rez0cfr0OBhUYoP2S1EEVDEbosdnQAeVJz5MgBg2iRQqscRBcOp ghPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729343529; x=1729948329; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Hb4d1jZLv4WqdF8dZPJ7OVv/jL3QXmCjUnVyKFQhy4I=; b=Ohrt8EFbQH9dWPTxI9+EQUNXTdu4mVeOJGTb2A8RJuqjESTK+2mqlUBt8rTxI/9ilX Nnje/6Kmj/MYA8OT2swQeZZiVCiAB783CrTB9QCR6Dzy4XghCRtlZDcA/8ZFCY48Yl7Z DDQvJRmA8gc2Hfr0uDslihCTV7xjMoTfMKUUXaPgiprKtElSOhJ07LxDO8RtqQ4NIqKZ 0sG1qCh9/lX4fXGR5cZX1lB5aiYJTb/oYYZMTQG8C7WygU9kGxqffyP8AZ8D8l/EosF7 We0F0GNjTMx/wkhfQqaEETtCs9jCy0q3HWgXO0/B7cUgi1q6gJD3qu9v9Yseomd31THy opbg== X-Forwarded-Encrypted: i=1; AJvYcCVGg2Im29uDDBS2UDQuDWfNYHwgeX+5YPySOJrujN60G+ske6Q23IvYAoAoiKwsCOTWNxG/abxXp/4=@gnu.org X-Gm-Message-State: AOJu0YxuRrD9+DQuIr8ZTsNnHz2I2TiDPos4VKRiOkCthX3T/IqXubm9 wOWc6PSDnW6iZHPitFCbacvMIMWFcyosRoXaWYLphE9ERhcm4rhEVe/xUQ== X-Google-Smtp-Source: AGHT+IGbg0pXXYH88uU50VkDjMcU2h749cwWZSmJP0l/n7MO8tR7pZFRHLNgV9N2GII26i4D82eTmw== X-Received: by 2002:a17:902:d2c3:b0:20c:5c6b:2eac with SMTP id d9443c01a7336-20e5a97e346mr66499725ad.49.1729343529609; Sat, 19 Oct 2024 06:12:09 -0700 (PDT) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e5a8f0501sm27423185ad.183.2024.10.19.06.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 06:12:09 -0700 (PDT) From: Maxim Cournoyer To: Alexis Simon Cc: Polyedre , help-guix@gnu.org Subject: Re: Python package that uses setuptools_scm is builded with version 0.0.0 In-Reply-To: <0475e6c9-d346-4c25-81f4-e82af9d21bb1@runbox.com> (Alexis Simon's message of "Sun, 2 Jun 2024 18:09:15 -0700") References: <87h6ecv3yn.fsf@disroot.org> <0475e6c9-d346-4c25-81f4-e82af9d21bb1@runbox.com> Date: Sat, 19 Oct 2024 22:12:06 +0900 Message-ID: <87iktock49.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=maxim.cournoyer@gmail.com; helo=mail-pl1-x633.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, 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-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-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: -1.56 X-Spam-Score: -1.56 X-Migadu-Queue-Id: 61A9F4699F X-TUID: R5kXX0zELpAI Hi, Alexis Simon writes: > Hi Polyedre, > > I think having python-setuptools-scm in your native-inputs should be > enough for building with the right version number. > At least it was enough for me when I encountered this issue before. It is if you build from a PyPI archive, which has some metadata available. If you build from a git checkout, it expects to compute/find the version from git, and won't be able to do so in Guix (.git is stripped for reproducibility). In this case, you must set SETUPTOOLS_SCM_PRETEND_VERSION, e.g. as done in python-scanpy: --8<---------------cut here---------------start------------->8--- (add-after 'unpack 'pretend-version (lambda _ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) --8<---------------cut here---------------end--------------->8--- See also the relevant issue/feature request https://issues.guix.gnu.org/54899 I had reported a long time ago. Hope that helps, -- Thanks, Maxim