GNU bug report logs - #70489
[PATCH 00/47] Astronomy 2024/04 updates.

Previous Next

Package: guix-patches;

Reported by: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Date: Sat, 20 Apr 2024 23:21:03 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 70489 <at> debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus <at> gmail.com>, Andreas Enge <andreas <at> enge.fr>, Eric Bavier <bavier <at> posteo.net>, Sharlatan Hellseher <sharlatanus <at> gmail.com>
Subject: [bug#70489] [PATCH 39/47] gnu: python-photutils: Update to 1.12.
Date: Sun, 21 Apr 2024 00:22:28 +0100
* gnu/packages/astronomy.scm (python-photutils): Update to 1.12.
[arguments]: <#:phases>: Add 'create-setup.py phase.

Change-Id: I94908eda0eb7741cb23d2d4dc969c91cdbd08fa2
---
 gnu/packages/astronomy.scm | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index ab5ea7394e..dd5864a582 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -2426,13 +2426,15 @@ (define-public python-ndcube
 (define-public python-photutils
   (package
     (name "python-photutils")
-    (version "1.10.0")
+    ;; PyPI version for source archive is missing minor 0, See
+    ;; <https://github.com/astropy/photutils/issues/1727>
+    (version "1.12")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "photutils" version))
        (sha256
-        (base32 "148zhdxhlcgj6dxyzaz78bzxw1q44qa9q9sfdqbfbla0s0w2jaay"))))
+        (base32 "0y4kcj6qjnzwjswc0c2iimh11b0jz6b9ianbh58w4gnb4y71lr6r"))))
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -2440,6 +2442,16 @@ (define-public python-photutils
       #~(list "-n" "auto")
       #:phases
       #~(modify-phases %standard-phases
+          ;; setup.py was removed in 36c3231ce5b80ad470fa78be2e96df859d2daf41
+          ;; for some unknown reason, which caused the package to fail to
+          ;; build. It is being recreated based on that commit.
+          (add-after 'unpack 'create-setup.py
+            (lambda _
+              (call-with-output-file "setup.py"
+                (lambda (port)
+                  (format port "from setuptools import setup
+from extension_helpers import get_extensions
+setup(ext_modules=get_extensions())")))))
           ;; This file is opened in both install and check phases.
           (add-before 'install 'writable-compiler
             (lambda _ (make-file-writable "photutils/_compiler.c")))
-- 
2.41.0





This bug report was last modified 1 year and 76 days ago.

Previous Next


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