guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/08: gnu: python-dask: Remove bundled versioneer.


From: guix-commits
Subject: 07/08: gnu: python-dask: Remove bundled versioneer.
Date: Mon, 13 Dec 2021 17:33:56 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 48a6f1d351a0f119ca25ae9b66f535dd2300ac7d
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Dec 13 19:21:10 2021 +0100

    gnu: python-dask: Remove bundled versioneer.
    
    * gnu/packages/python-xyz.scm (python-dask)[source](snippet): New field.
    [arguments]: Add versioneer phase.
    [native-inputs]: Add PYTHON-VERSIONEER.
---
 gnu/packages/python-xyz.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 72c2809..357aed5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22350,11 +22350,17 @@ decisions with any given backend.")
              (commit "5a8275dd53193b47457cdfadc0e2356ea3eb6ccd")))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0h8w7c03mn6s2mmwbqd2sqay3k4vaqiwlsbvliziggw28042zfw2"))))
+        (base32 "0h8w7c03mn6s2mmwbqd2sqay3k4vaqiwlsbvliziggw28042zfw2"))
+       (snippet
+        ;; Delete generated copy of python-versioneer.  We recreate it below.
+        '(delete-file "versioneer.py"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'versioneer
+           (lambda _
+             (invoke "versioneer" "install")))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests? (invoke "pytest" "-vv")))))))
@@ -22368,7 +22374,8 @@ decisions with any given backend.")
            python-toolz
            python-pyyaml))
     (native-inputs
-     (list python-pytest python-pytest-runner python-pytest-rerunfailures))
+     (list python-pytest python-pytest-runner python-pytest-rerunfailures
+           python-versioneer))
     (home-page "https://github.com/dask/dask/";)
     (synopsis "Parallel computing with task scheduling")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]