From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QAjRBByqymV5EQAA62LTzQ:P1 (envelope-from ) for ; Tue, 13 Feb 2024 00:30:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QAjRBByqymV5EQAA62LTzQ (envelope-from ) for ; Tue, 13 Feb 2024 00:30:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zancanaro.id.au header.s=k1 header.b=GxMWQtNZ; 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=zancanaro.id.au ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707780636; 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=9tLJBrywMM090jcK7kDp6lvriBXanB+GSF035FSdnQs=; b=qMMykNoEFMHVsFz75X7d9CSICKGI2TMEeWQMuucTK/oGTH3JziGr4bT0HExVBubvftszRy pw/AqWAlSZNHjdsx9R8GFzACvvAoMNOCtdFlzAiLwpUivwvcjEp5f/8Cl37U2RMb3Lj307 KQGBTKWSclFGHtthsHF7t8X9aDXVXmnTkc23Qq8QOTfDaBzgOtuAc/xXZNDhVZbuZ76J/Q 2SDx5N0wESjj4aKBPmOz0S8AyEZLdet1cX9LKMvCLi3a9MewcidWJrwmx2rVy9j6uOgK9+ 62oYDEmTB1IriAAmPeDm7E8jOm9EzT8wCSK8F4+P52BKRQaQWeQ+aRAyZ8xqrw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=zancanaro.id.au header.s=k1 header.b=GxMWQtNZ; 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=zancanaro.id.au ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707780636; a=rsa-sha256; cv=none; b=lUzFbWR45YAqNg7MerJuPcmpkZw3KdxLVHtql6dRuOfxuLHHpgILD1IO7jCCLKdsZOj076 1EMrQMtSsjacPtGIUO1dG0TVeO3wzQbQmkyNhj/7JZbmsTkRqCOKr8Lrj9Ih5VhNZLVox6 MIiOqzWnU5Mre+qfxi8Icpsp88mZxaK/w14i5+PKe09AkRmOHNEZct2fthUgAWEKkPs+Rk Jp60mz0R/CL+2zAckruJdAWC6igNRfxpOsciQ8qzRB9MfrcfmPPuQ6CCTXTryYkV5VoTI+ 1eQ7dNct7E5k/kFVOT62vv0WZM2xTNScuNOXNyFmuz4ncPAD70I0A9ARhE8o6w== 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 021B7547E8 for ; Tue, 13 Feb 2024 00:30:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZfkR-0007Jr-46; Mon, 12 Feb 2024 18:30:03 -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 1rZfkQ-0007Jc-3P for help-guix@gnu.org; Mon, 12 Feb 2024 18:30:02 -0500 Received: from voltorb.zancanaro.id.au ([45.77.50.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZfkD-0005QJ-Eg for help-guix@gnu.org; Mon, 12 Feb 2024 18:30:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=k1; bh=9tLJBrywMM090jc K7kDp6lvriBXanB+GSF035FSdnQs=; h=date:references:in-reply-to:subject: cc:to:from; d=zancanaro.id.au; b=GxMWQtNZuzyxcOu+fBKY3tTAxE/HfN/qxLNa9 RDghTKmj+I4rZTWZberB3NSGRBjNPQW4YS60quhECmY4TJ54mECn854S9MxNTghrxC9uUM jpthhd4VcqXtQMeCKHv7ybmsQOo0dTZi195L66VUf+fBynhZtZXhNWj0LnipqHsc= Received: by voltorb.zancanaro.id.au (OpenSMTPD) with ESMTPSA id 0fecf2dd (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 12 Feb 2024 23:29:42 +0000 (UTC) From: Carlo Zancanaro To: Alexis Simon Cc: help-guix Subject: Re: Python package with some rust dependency In-Reply-To: <0fdf88c8-1f1a-420b-a27c-aa07cb273059@runbox.com> (Alexis Simon's message of "Sun, 11 Feb 2024 17:49:32 -0800") References: <0fdf88c8-1f1a-420b-a27c-aa07cb273059@runbox.com> Date: Tue, 13 Feb 2024 10:29:45 +1100 Message-ID: <875xyt8dna.fsf@zancanaro.id.au> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=45.77.50.64; envelope-from=carlo@zancanaro.id.au; helo=voltorb.zancanaro.id.au 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, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.90 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -9.90 X-Migadu-Queue-Id: 021B7547E8 X-TUID: fuPrSlSED1xo Hi Alexis, I don't really know much about building rust. Given this one repository has both, I wonder if it would make sense to build them separately (as two packages), and have one as an input of the other. Presumably this would mean the python package taking the rust package as an input, but the details might be more involved. On Sun, Feb 11 2024, Alexis Simon wrote: > Going the cargo-build-system way, it errors probably because there's > no rust crate at the root of the project. One option here might be to add a phase after the unpack phase, to chdir into the directory with the rust crate. You can see examples in lots of places in the Guix repository, like wpa-supplicant-gui. Which has a phase modification: (add-after 'unpack 'chdir (lambda _ (chdir "wpa_supplicant/wpa_gui-qt4"))) You'll need to change the directory to match where in the fwdpy11 source you need to go to build the rust stuff. I hope that helps, Carlo