Bug 270507

Summary: devel/py-pythran: Update to 0.12.1
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: Wen Heping <wen>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (wen)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/scipy/scipy/issues/18233
Bug Depends on: 270602    
Bug Blocks:    
Attachments:
Description Flags
patch
none
patch none

Description Yuri Victorovich freebsd_committer freebsd_triage 2023-03-28 20:57:35 UTC
Created attachment 241168 [details]
patch

This unbreaks Cython that fails like this with older versions:

  File "Cython/Compiler/Visitor.py", line 16, in init Cython.Compiler.Visitor
  File "/usr/local/lib/python3.9/site-packages/Cython/Compiler/Nodes.py", line 31, in <module>
    from .Pythran import has_np_pythran, pythran_type, is_pythran_buffer
  File "/usr/local/lib/python3.9/site-packages/Cython/Compiler/Pythran.py", line 11, in <module>
    pythran_is_pre_0_9 = tuple(map(int, pythran.__version__.split('.')[0:2])) < (0, 9)
AttributeError: module 'pythran' has no attribute '__version__'
Comment 1 Wen Heping freebsd_committer freebsd_triage 2023-03-30 10:41:42 UTC
It break scipy :(
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2023-04-02 15:37:13 UTC
math/py-petsc4py version 3.19.0 also depends on pythran-0.12.1 - so it can't be updated.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2023-04-02 17:09:08 UTC
Created attachment 241268 [details]
patch
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2023-04-22 05:11:50 UTC
(In reply to Wen Heping from comment #1)

Hi Wen,

scipy is now updated.
devel/py-pythran can probably be updated as well?
Comment 5 Wen Heping freebsd_committer freebsd_triage 2023-04-22 10:09:22 UTC
(In reply to Yuri Victorovich from comment #4)
Yes. scipy-1.10.1 build well with pythran-0.12.1, please go ahead !

wen
Comment 6 Yuri Victorovich freebsd_committer freebsd_triage 2023-04-24 05:38:19 UTC
Committed, thanks!
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-04-24 05:42:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b6891c08dea0fea35fcd67079b8682c31407d59a

commit b6891c08dea0fea35fcd67079b8682c31407d59a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-04-24 04:42:00 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-04-24 05:40:25 +0000

    devel/py-pythran: Update 0.12.0 → 0.12.1

    PR:     270507
    Approved by:    wen@ (maintainer)

 devel/py-pythran/Makefile                                |  7 +++----
 devel/py-pythran/distinfo                                |  6 +++---
 .../patch-pythran_xsimd_arch_xsimd__scalar.hpp (new)     | 16 ++++++++++++++++
 ...patch-third__party_xsimd_arch_xsimd__scalar.hpp (new) | 16 ++++++++++++++++
 4 files changed, 38 insertions(+), 7 deletions(-)