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 xXy2C1B5jl/HDAAA0tVLHw (envelope-from ) for ; Tue, 20 Oct 2020 05:44:48 +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 KInFBlB5jl9REwAA1q6Kng (envelope-from ) for ; Tue, 20 Oct 2020 05:44:48 +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 09B099403A0 for ; Tue, 20 Oct 2020 05:44:47 +0000 (UTC) Received: from localhost ([::1]:56564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUkRx-0003xc-26 for larch@yhetil.org; Tue, 20 Oct 2020 01:44:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUjvK-0002QM-Uv for bug-guix@gnu.org; Tue, 20 Oct 2020 01:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUjvK-00058t-JN for bug-guix@gnu.org; Tue, 20 Oct 2020 01:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUjvK-0000OB-Dp for bug-guix@gnu.org; Tue, 20 Oct 2020 01:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44090: Packaging a python library that is implemented with rust Resent-From: "Hamzeh Nasajpour" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 20 Oct 2020 05:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44090 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44090@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16031706531477 (code B ref -1); Tue, 20 Oct 2020 05:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Oct 2020 05:10:53 +0000 Received: from localhost ([127.0.0.1]:43119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUjv5-0000Lf-Sb for submit@debbugs.gnu.org; Tue, 20 Oct 2020 01:10:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:33250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUjv4-0000LX-Ng for submit@debbugs.gnu.org; Tue, 20 Oct 2020 01:10:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUjv4-0001vo-G7 for bug-guix@gnu.org; Tue, 20 Oct 2020 01:10:46 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:45739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUjv0-0004uf-5j for bug-guix@gnu.org; Tue, 20 Oct 2020 01:10:46 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8A2CCAF3 for ; Tue, 20 Oct 2020 01:10:40 -0400 (EDT) Received: from imap5 ([10.202.2.55]) by compute3.internal (MEProxy); Tue, 20 Oct 2020 01:10:40 -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=GPIDf/94PnUe8LzOPSB+uKbaPDMhR/CYUpQ7kRNWMt8=; b=rDUpkfE1 GbVy8EjhN6NkiC1GVWEs13mZLlCHsdZXgeCWq2PIcVwc7wIoK/FbyDo6lKVyIHel Wp5BXirODxzRn+7m1SvI8VMP0Ydl33b+0kMJ9AymFBhUxVk+oKGg62nrm1LNs9Fz S7zsx/a/+2kCiqWCNEE4FgDVmqPQ619X4a4y6fMSWqown3F5Dbk7eOwGgigsvZlZ ocKAhahNLeme5+NkyVNApXcReT6sLZ/fcaOUXIQ/X6s25T2ZCSQnau1KpB1FTPpA qlr4Mu05oip9SUzFm+pHmEdeOzd9cKrr3vVCGU4mgMdeXWG9P9/jDTv44E6ubkC5 zYc/3ROw8QB+Og== 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=GPIDf/94PnUe8LzOPSB+uKbaPDMhR /CYUpQ7kRNWMt8=; b=kt4sH6H1N9GienR7svGq48Wbhc2q3Sx+svSHgE/pnj3mE s7J7zAKH4b0ltvQkA+FBrTsyiDvzslDtOOn9g888eKXjvkTBGgJOOQBQiwYz4R6/ rDkeNdYG0RJ9uVNsJZrU0BXD695NawoF4amrs66rhC8MlUfrhanSn5Aho0ftI4bm C9wBVqjv49qERYwQjmE//fhvAyKGAsIK386aOW6t9R+6mUivKj8x+mAqBw148b9F 8/84VwRpBLlYCdfOW/YpHOGHHG5Ssz4HcmA8vvT52aiGwNJQsIHZJcCckYP7q4AJ X/FQsG6SQgEBY8HKyMeSbSgrnYkW4y/4esIWxbebA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjedvgdduudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfjfgrmhiivghhucfprghsrghjphhouhhrfdcuoehhrdhnrghs rghjphhouhhrsehprghnthhhvghrgidrohhrgheqnecuggftrfgrthhtvghrnhepledtke duveekfeetgfeggfeihfduuefgieehjeetveduffdvieevudfhkeelheeunecuffhomhgr ihhnpehgihhthhhusgdrtghomhdpghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhrdhnrghsrghjphhouhhrsehprghnthhh vghrgidrohhrgh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D73355C0099; Tue, 20 Oct 2020 01:10:39 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-502-gfef6c88-fm-20201019.001-gfef6c888 Mime-Version: 1.0 Message-Id: Date: Tue, 20 Oct 2020 08:40:19 +0330 From: "Hamzeh Nasajpour" Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.25; envelope-from=h.nasajpour@pantherx.org; helo=wout2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 01:10:40 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-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.6 (--) X-Mailman-Approved-At: Tue, 20 Oct 2020 01:44:08 -0400 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=pantherx.org header.s=fm1 header.b=rDUpkfE1; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm1 header.b=kt4sH6H1; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 1.00 X-TUID: Y8IcTvUG4NXZ Hi, I'm not expert in rust and python but I need to package a python library, and this python library is a wrapper over the rust library. This library is using the `setuptools_rust` for build/install. * python library: https://github.com/etesync/etebase-py * rust library: https://github.com/etesync/etebase-rs * `setup.py`: https://github.com/etesync/etebase-py/blob/master/setup.py Anyway I need to package this python library. Since guix has two different build system for `python` and `rust` I don't know how can I package it. It's a python library but it should install some rust library inside the python system build. * This is package definition of `python-setuptools-rust`: ``` (define-public python-setuptools-rust (package (name "python-setuptools-rust") (version "0.11.3") (source (origin (method url-fetch) (uri (pypi-uri "setuptools-rust" version)) (sha256 (base32 "1p21sw77197m7pciy8g25bwwaakq1675h0x1lis9sypzr46p2s11")))) (build-system python-build-system) (native-inputs `(("python-setuptools" ,python-setuptools) ("python-setuptools-scm" ,python-setuptools-scm) ("python-wheel" ,python-wheel))) (propagated-inputs `(("python-semantic-version" ,python-semantic-version) ("python-toml" ,python-toml))) (home-page "https://github.com/PyO3/setuptools-rust") (synopsis "Setuptools rust extension plugin") (description "Setuptools rust extension plugin") (license license:expat))) ``` * And this is package definition of `python-etebase`. ``` (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))) (inputs `(("rust-etebase-rs" ,rust-etebase-rs))) (home-page "https://github.com/etesync/etebase-py") (synopsis "Python client library for Etebase") (description "Python client library for Etebase") (license #f))) ``` This is the error in package building: ``` 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: Can not find Rust compiler 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/45b049cf1k8czxmvwqi3yw6gyk5s7hx5-python-etebase-0.30.0.drv' failed with exit code 1 build of /gnu/store/45b049cf1k8czxmvwqi3yw6gyk5s7hx5-python-etebase-0.30.0.drv failed View build log at '/var/log/guix/drvs/45/b049cf1k8czxmvwqi3yw6gyk5s7hx5-python-etebase-0.30.0.drv.bz2'. guix build: error: build of `/gnu/store/45b049cf1k8czxmvwqi3yw6gyk5s7hx5-python-etebase-0.30.0.drv' failed ``` Sorry for duplication, I sent this email here too: https://lists.gnu.org/archive/html/help-guix/2020-10/msg00092.html then I thought this mailing list is better for asking this type questions. Regards, Hamzeh