From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CL1+KiwylF/VKQAA0tVLHw (envelope-from ) for ; Sat, 24 Oct 2020 13:54:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YPJoJiwylF+NIwAA1q6Kng (envelope-from ) for ; Sat, 24 Oct 2020 13:54:52 +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 38A019401DD for ; Sat, 24 Oct 2020 13:54:52 +0000 (UTC) Received: from localhost ([::1]:46878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWK0R-000539-2H for larch@yhetil.org; Sat, 24 Oct 2020 09:54:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWK0F-00052i-TE for help-guix@gnu.org; Sat, 24 Oct 2020 09:54:39 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:48744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWK0D-0000US-Qa for help-guix@gnu.org; Sat, 24 Oct 2020 09:54:39 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CJMzF3hTLz1rt3q for ; Sat, 24 Oct 2020 15:54:33 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CJMzF2rnyz1qvhK for ; Sat, 24 Oct 2020 15:54:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id trXa2e6EHg91 for ; Sat, 24 Oct 2020 15:54:32 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-49-133.dynamic.mnet-online.de [188.174.49.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Sat, 24 Oct 2020 15:54:32 +0200 (CEST) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 7AB5F60103 for ; Sat, 24 Oct 2020 15:54:29 +0200 (CEST) Subject: Re: Packaging a python package that is using setuptools_rust To: help-guix@gnu.org References: <80e00aa7-9ddb-4255-9d55-0393e97e84e2@www.fastmail.com> From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: Date: Sat, 24 Oct 2020 15:54:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <80e00aa7-9ddb-4255-9d55-0393e97e84e2@www.fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: none client-ip=2001:a60:0:28:0:1:25:1; envelope-from=h.goebel@crazy-compilers.com; helo=mail-out.m-online.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/24 09:54:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.107, RCVD_IN_DNSWL_LOW=-0.7, 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.01 X-TUID: K25UBs0TcJ1h Am 19.10.20 um 12:52 schrieb Hamzeh Nasajpour: > running build_rust > error: [Errno 2] No such file or directory: 'cargo' > command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "build" failed with status 1 This looks like cargo is not found on the path, although it should be there. You could validate $PATH like this: Add a phase before the build-phase, containing just "(pk (getenv PATH))". > Do you have any idea? I should add the rust dependencies to `native-inputs` or `inputs` of `etebase-py`? It must be a native-input, since cargo and rustc are expected to run on the build system. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |