From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id goMRHCdwjV89MAAA0tVLHw (envelope-from ) for ; Mon, 19 Oct 2020 10:53:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QNukFydwjV8fHAAAB5/wlQ (envelope-from ) for ; Mon, 19 Oct 2020 10:53:27 +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 0C0159402DD for ; Mon, 19 Oct 2020 10:53:25 +0000 (UTC) Received: from localhost ([::1]:52694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUSn5-00007E-9F for larch@yhetil.org; Mon, 19 Oct 2020 06:53:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUSmp-00005D-CW for help-guix@gnu.org; Mon, 19 Oct 2020 06:53:07 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:48167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUSmm-0001l2-RC for help-guix@gnu.org; Mon, 19 Oct 2020 06:53:07 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4BE435C00FD for ; Mon, 19 Oct 2020 06:53:03 -0400 (EDT) Received: from imap5 ([10.202.2.55]) by compute3.internal (MEProxy); Mon, 19 Oct 2020 06:53:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=/yB3OGsk6qd+mE8fHq8QgLGeSsXwlCxtQfr8HwpEeLE=; b=MRV3XGZC SJ30UP5rBBiiRx5wDJJMjX6EvvU5//qYLuB978EioDLfelwTYxLIu8eR42EL6gFe RCGZnU4GJz7NKvgeqEghE+uof+See1smmVn2Sq3TIys00oEl16bxKpifVTLOlVQ/ wEdilwDgXtx+QVS8v3/Kwtf4UtsHlatkFy/JTGr5OmV2FvqmSC3QrtY/1Sk3hCG4 63YtN6mdEFElOovOY7YfiI6MkFeDfJDlWOvt/WrVF2kbzZfs3WbI9IduFpatGFLy HL5la30FSXtNO23q7/blHm39Yna1IxWQU88nlpc4n2zLeoIm5O+7WVuVBoWgZ87e gMJohTjgr8XRkg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=/yB3OGsk6qd+mE8fHq8QgLGeSsXwl CxtQfr8HwpEeLE=; b=Ivkk8eXUpCEkJpcaFyUAtBofrBSEOt2sGWgkJI+n62jAt oRpdWJ1/A2EbEeQFM6yaHLYvpBnLWkHX6GtLiwOT8TdLZf0Eht/ArvyesKkyiSas IFP14L5WcWz2xhS3wg35FizxJOiH1vPQh4N8Qis+7ivfQVBoF2xd4+J1ekcJJaLd HdnnqBBmStqoWkPWXQtYdmhYaInPmZMXM7nnAxaiMiEec3BGEBcKJ0kXT6TbCdTv J/ZPblLx5CiX5m4GfQ5nXpA66KqblmYPkirTgyryX1M1N5Cqc0boAjWlDTs2RMv4 0ZlnJ45a8/z0Qv8iIuHrVLhMiUtDvqijbCn93jSQg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjedugdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdfjrghmiigvhhcupfgrshgrjhhpohhurhdfuceohhdrnhgrshgr jhhpohhurhesphgrnhhthhgvrhigrdhorhhgqeenucggtffrrghtthgvrhhnpeefkeegfe ejhfdvgfeuudefteeugffhieefleejkedvteduteekkeefffevveeiteenucffohhmrghi nhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhephhdrnhgrshgrjhhpohhurhesphgrnhhthhgvrhigrdhorhhg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id F2A865C0099; Mon, 19 Oct 2020 06:53:02 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-489-gf39678d-fm-20201011.001-gf39678d0 Mime-Version: 1.0 Message-Id: <80e00aa7-9ddb-4255-9d55-0393e97e84e2@www.fastmail.com> Date: Mon, 19 Oct 2020 14:22:42 +0330 From: "Hamzeh Nasajpour" To: "SuarezMiguelC via" Subject: Packaging a python package that is using setuptools_rust Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=h.nasajpour@pantherx.org; helo=out5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/19 06:53:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.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=pass header.d=pantherx.org header.s=fm1 header.b=MRV3XGZC; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=Ivkk8eXU; 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: -0.20 X-TUID: Tdo1o4yUgKQF Hi, I want to package the `etebase-py` library: https://github.com/etesync/etebase-py/ It's using the `setuptools_rust` for build/install. Also it has some rust dependencies that I packaged them. And now I create a package definition by `guix import ...`: ``` (define-public python-etebase (package (name "python-etebase") (version "0.30.0") (source (origin (method url-fetch) (uri (pypi-uri "etebase" version)) (sha256 (base32 "1py635aqnxx3jy4x6zffriqi0l9gc2gk06h0ms91k4rs68h0gb0i")))) (build-system python-build-system) (native-inputs `(("python-msgpack" ,python-msgpack) ("python-setuptools-rust" ,python-setuptools-rust) ("rust" ,rust))) (home-page "https://github.com/etesync/etebase-py") (synopsis "Python client library for Etebase") (description "Python client library for Etebase") (license #f))) ``` I faced with the following error in the package building: ``` ... etebase-0.30.0/setup.py etebase-0.30.0/src/ etebase-0.30.0/src/lib.rs etebase-0.30.0/src/glue.rs.in phase `unpack' succeeded after 0.0 seconds starting phase `ensure-no-mtimes-pre-1980' phase `ensure-no-mtimes-pre-1980' succeeded after 0.0 seconds starting phase `enable-bytecode-determinism' phase `enable-bytecode-determinism' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build' running "python setup.py" with command "build" and parameters () running build running build_py creating build creating build/lib creating build/lib/etebase copying etebase/__init__.py -> build/lib/etebase running build_ext 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 builder for `/gnu/store/lnwxp7sym6i2ixg4mnmz9h7ff1fg32cd-python-etebase-0.30.0.drv' failed with exit code 1 build of /gnu/store/lnwxp7sym6i2ixg4mnmz9h7ff1fg32cd-python-etebase-0.30.0.drv failed View build log at '/var/log/guix/drvs/ln/wxp7sym6i2ixg4mnmz9h7ff1fg32cd-python-etebase-0.30.0.drv.bz2'. guix build: error: build of `/gnu/store/lnwxp7sym6i2ixg4mnmz9h7ff1fg32cd-python-etebase-0.30.0.drv' failed ``` Do you have any idea? I should add the rust dependencies to `native-inputs` or `inputs` of `etebase-py`? Do you have any package definition that is used `setuptools_rust` as example for me? Regards, Hamzeh