From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 20 01:10:53 2020 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" To: bug-guix@gnu.org Subject: Packaging a python library that is implemented with rust 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 20 06:24:11 2020 Received: (at submit) by debbugs.gnu.org; 20 Oct 2020 10:24:11 +0000 Received: from localhost ([127.0.0.1]:43703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUooN-0004f0-Bc for submit@debbugs.gnu.org; Tue, 20 Oct 2020 06:24:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:35338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUooM-0004et-3y for submit@debbugs.gnu.org; Tue, 20 Oct 2020 06:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUooL-0004Q2-GB for bug-guix@gnu.org; Tue, 20 Oct 2020 06:24:09 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:19735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUooI-0001N7-4q for bug-guix@gnu.org; Tue, 20 Oct 2020 06:24:08 -0400 Received: from nijino.local (217-149-162-161.nat.highway.telekom.at [217.149.162.161]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4CFqV40jNjz1LWp9; Tue, 20 Oct 2020 12:23:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4CFqV40jNjz1LWp9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1603189436; bh=758HtMHP0NHaEsM38nVzjN3XmahBxCAFH9mgdQqppls=; h=Subject:From:To:Cc:Date:In-Reply-To:From; b=oOlEDBLH/hNfHeg/hCqYvkkRKI6KPSGKykgajF1NWYeLLp4/Bz2c2u5hTaAzGL89O ZZ87AZLpRBxt+C7xnQl7cRlmWqoq3vh8cpkWL3GCPzOobLuVQPhGRrEWVxZqEFHp4m Ybb50UA49O2vTnRY+/+9LXCP6HKVVvM/Cpjx1nic= Message-ID: Subject: bug#44090: Packaging a python library that is implemented with rust From: Leo Prikler To: h.nasajpour@pantherx.org Date: Tue, 20 Oct 2020 12:23:54 +0200 In-Reply-To: ccc953ad-6bc9-4ccf-8bc0-6c8d6d977105@www.fastmail.com Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/20 06:23:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello Hamzeh, I think part of the issue here, is that the build system for etebase-py tries to also build etebase-rs, which you have already packaged. There are two ways you could continue here: 1. Patch the build system of etebase-py, so that it works with your already built etebase-rs. 2. Pull in the etebase-rs source as input to etebase-py and build everything as one package. I am not sure, which option makes more sense here. I do lean a bit more towards #1, but others may weigh in on this as well. I'm pretty sure you can disregard setuptools-rust if you choose #1. If you do #2, you might have to mix some of the rust-build-system phases into python- etebase. Regards, Leo From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 14:02:37 2021 Received: (at 44090-done) by debbugs.gnu.org; 1 Feb 2021 19:02:37 +0000 Received: from localhost ([127.0.0.1]:33226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6eT7-0008Tb-4h for submit@debbugs.gnu.org; Mon, 01 Feb 2021 14:02:37 -0500 Received: from mail-qk1-f177.google.com ([209.85.222.177]:38013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6eT5-0008TN-88 for 44090-done@debbugs.gnu.org; Mon, 01 Feb 2021 14:02:35 -0500 Received: by mail-qk1-f177.google.com with SMTP id d85so17366110qkg.5 for <44090-done@debbugs.gnu.org>; Mon, 01 Feb 2021 11:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Q1/0sQfUNt48OBEy+W6Bqn8bnloM/Gyv4sK31vfzISQ=; b=fsh2LD+VpB0qKK18WrG+ZzROv7sS4Qf+hlRT5V7yFy13mk4vqwYcZltYVtrl9ULlW/ qSIkMnDkLtf7qRxzM0ZBEn+706BaDsXEQuCRz5GtoRpuRx07Z1JIIzTAingjC4cgEmvv wKKmp+n6srRoW3/CdOH9xpSG0smOESWziJizdLE2FAt+pZN3l0JHbhj/Hcs9WHzxyIaf 68mLp9WALtilEi9ftcOpDaaIesnxlrl4n6XVr72Hg5ZBTHAiR2SRzvh6DNiqeTOu20sj Fz1+VaAVHBhrEOUdQdv6tqWG8SXfRgj6TzhUfBSigzStpXBTOyjNg/PJpEnpksGX0/j/ sL/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Q1/0sQfUNt48OBEy+W6Bqn8bnloM/Gyv4sK31vfzISQ=; b=KAzkd/7RKXXrygFHQOl3BzFKx/zh6FzC+3jWA0PUjcltrC548WsRnLrtuJ+3m0aNP9 n7pQCNmElbT9iZvzSUajaNwY/EtV+QfTGV6/T1z9YJgh3zx/LZTjgEZqPGWdRv1eS2xk XFkmmj8yNU1Ok2uQgeo/+qQWPFiAGRsRVvmboezWhRs3xOTs5sDvOHG1BgVaySo/7oLi w+OWg3r3h7YW9TRD1tcisCghQ61ajJu6VqAIbhcXH4VozNQ921EYePBE6YIbQJWKlpG8 +CN0PruFHb/WW+fzkSQ3I4r5+9R0+mdyFjYuexYoRHv7aYcGoDQMCf5B4MTZhroHM/Yl Hdlw== X-Gm-Message-State: AOAM531deKWwhGHWWd/MJZtkBTZoSqOV1tlDmQXAX/QUBfdjiMa50iRu jmarjcd0H5ra15wD2FTT2XZgViVuMt0= X-Google-Smtp-Source: ABdhPJw4w7/n8j/qYjZ7Hm1qW5XLWB92v7n6qC6O40Ssm5ELv8gYIg4wv0d/9gziUSu+03LQ5cEjuA== X-Received: by 2002:a37:a34f:: with SMTP id m76mr17278594qke.89.1612206149471; Mon, 01 Feb 2021 11:02:29 -0800 (PST) Received: from hurd (dsl-205-236-230-168.b2b2c.ca. [205.236.230.168]) by smtp.gmail.com with ESMTPSA id d192sm14940907qkc.65.2021.02.01.11.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 11:02:29 -0800 (PST) From: Maxim Cournoyer To: "Hamzeh Nasajpour" Subject: Re: bug#44090: Packaging a python library that is implemented with rust References: Date: Mon, 01 Feb 2021 14:02:27 -0500 In-Reply-To: (Hamzeh Nasajpour's message of "Tue, 20 Oct 2020 08:40:19 +0330") Message-ID: <87zh0nr4qk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44090-done Cc: 44090-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Hamzeh, "Hamzeh Nasajpour" writes: > 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. [...] > 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. The original list was better suited for this kind of question. This list is about actual *bugs*, rather than general question. I see you've had a reply from Leo; hopefully that answered your question. Closing. Maxim From unknown Sat Jun 21 03:27:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Mar 2021 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator