GNU bug report logs - #72432
[PATCH 0/2] Add dlpack, python-pyclibrary.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Fri, 2 Aug 2024 23:17:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 72432 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#72432; Package guix-patches. (Fri, 02 Aug 2024 23:17:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Graves <ngraves <at> ngraves.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 02 Aug 2024 23:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: guix-patches <at> gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [PATCH 0/2] Add dlpack, python-pyclibrary.
Date: Sat,  3 Aug 2024 01:13:38 +0200
These packages are used in the following pull request in nonguix:
https://gitlab.com/nonguix/nonguix/-/merge_requests/497

Nicolas Graves (2):
  gnu: Add dlpack.
  gnu: Add python-pyclibrary.

 gnu/packages/machine-learning.scm | 34 +++++++++++++++++++++++++++++++
 gnu/packages/python-xyz.scm       | 26 +++++++++++++++++++++++
 2 files changed, 60 insertions(+)

-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72432; Package guix-patches. (Sat, 03 Aug 2024 21:06:02 GMT) Full text and rfc822 format available.

Message #8 received at 72432 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 72432 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [PATCH 1/2] gnu: Add dlpack.
Date: Sat,  3 Aug 2024 23:04:36 +0200
* gnu/packages/machine-learning.scm (dlpack): New variable.

Change-Id: I9223e5c3b8f8317f88954cfdaccdfa11a51b7167
---
 gnu/packages/machine-learning.scm | 34 +++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 4c5b713cbf..600e111594 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -133,6 +133,40 @@ (define-module (gnu packages machine-learning)
   #:use-module (gnu packages xorg)
   #:use-module (ice-9 match))
 
+(define-public dlpack
+  (package
+    (name "dlpack")
+    (version "0.8")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/dmlc/dlpack")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1jmfvdrx8dn9b0ksm04ixha0jnrk35ip796qg98kfz6g7niw5ir1"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:tests? #f)) ; no tests.
+    (home-page "https://github.com/dmlc/dlpack")
+    (synopsis "In Memory Tensor Structure")
+    (description "This package provides an open in-memory tensor structure for
+sharing tensors among frameworks.  DLPack enables
+@itemize
+@item Easier sharing of operators between deep learning frameworks.
+@item Easier wrapping of vendor level operator implementations, allowing
+collaboration when introducing new devices/ops.
+@item Quick swapping of backend implementations, like different version of
+BLAS
+@item For final users,this could bring more operators, and possibility of
+mixing usage between frameworks.
+@end itemize
+
+This package does not intend to implement Tensor and Ops, but instead use this
+as common bridge to reuse tensor and ops across frameworks.")
+    (license license:asl2.0)))
+
 (define-public fasttext
   (package
     (name "fasttext")
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72432; Package guix-patches. (Sat, 03 Aug 2024 21:06:02 GMT) Full text and rfc822 format available.

Message #11 received at 72432 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 72432 <at> debbugs.gnu.org
Cc: ngraves <at> ngraves.fr
Subject: [PATCH 2/2] gnu: Add python-pyclibrary.
Date: Sat,  3 Aug 2024 23:04:37 +0200
* gnu/packages/python-xyz.scm (python-pyclibrary): New variable.

Change-Id: Ib4d1bf9f265fc1935c432d8e4ed3e9704f03ba70
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d09c16b73e..9dc941ca84 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25937,6 +25937,32 @@ (define-public python-setuptools-rust
 Rust Python extensions implemented with @code{PyO3} or @code{rust-cpython}.")
     (license license:expat)))
 
+(define-public python-pyclibrary
+  (package
+    (name "python-pyclibrary")
+    (version "0.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/MatthieuDartiailh/pyclibrary")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0scnfk0dr8za1m7k1ml74dr8sg570sgs3hmis7fl27s2h1dbsapk"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list #:tests? #f))  ; XXX: 1/3rd of tests are failing, find out why.
+    (native-inputs (list python-pytest))
+    (propagated-inputs (list python-pyparsing-2.4.7))
+    (home-page "http://github.com/MatthieuDartiailh/pyclibrary")
+    (synopsis "Wrap dynamic libraries in Python")
+    (description "This package provides a library to make wrapping dynamic
+libraries in Python less cumbersome and more user friendly.  It includes a
+pure-Python C parser and an automation library that uses C header file
+definitions to simplify the use of C bindings.")
+    (license license:expat)))
+
 (define-public python-pyclipper
   (package
     (name "python-pyclipper")
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72432; Package guix-patches. (Sat, 30 Nov 2024 19:14:02 GMT) Full text and rfc822 format available.

Message #14 received at 72432 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 72432 <at> debbugs.gnu.org
Subject: Re: [bug#72432] [PATCH 2/2] gnu: Add python-pyclibrary.
Date: Sun, 01 Dec 2024 03:13:18 +0800
Hi Nicolas,

On Sun, 04 Aug 2024 05:04:37 +0800,
Nicolas Graves via Guix-patches via wrote:
>
> * gnu/packages/python-xyz.scm (python-pyclibrary): New variable.
>
> Change-Id: Ib4d1bf9f265fc1935c432d8e4ed3e9704f03ba70
> ---
>  gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index d09c16b73e..9dc941ca84 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -25937,6 +25937,32 @@ (define-public python-setuptools-rust
>  Rust Python extensions implemented with @code{PyO3} or @code{rust-cpython}.")
>      (license license:expat)))
>
> +(define-public python-pyclibrary
> +  (package
> +    (name "python-pyclibrary")
> +    (version "0.2.2")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/MatthieuDartiailh/pyclibrary")
> +             (commit version)))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0scnfk0dr8za1m7k1ml74dr8sg570sgs3hmis7fl27s2h1dbsapk"))))
> +    (build-system pyproject-build-system)
> +    (arguments
> +     (list #:tests? #f))  ; XXX: 1/3rd of tests are failing, find out why.

Can you find out why these tests are failing?  From the output it looks serious
to me.

> +    (native-inputs (list python-pytest))
> +    (propagated-inputs (list python-pyparsing-2.4.7))
> +    (home-page "http://github.com/MatthieuDartiailh/pyclibrary")
> +    (synopsis "Wrap dynamic libraries in Python")
> +    (description "This package provides a library to make wrapping dynamic
> +libraries in Python less cumbersome and more user friendly.  It includes a
> +pure-Python C parser and an automation library that uses C header file
> +definitions to simplify the use of C bindings.")
> +    (license license:expat)))
> +
>  (define-public python-pyclipper
>    (package
>      (name "python-pyclipper")
> --
> 2.45.2

Thanks




This bug report was last modified 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.