[MacPorts] #68545: py311-numpy @1.26.1 build failure - cannot find cython

MacPorts noreply at macports.org
Wed Oct 25 17:46:33 UTC 2023


#68545: py311-numpy @1.26.1 build failure - cannot find cython
-----------------------+-----------------------
  Reporter:  RobK88    |      Owner:  michaelld
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:  lion
      Port:  py-numpy  |
-----------------------+-----------------------

Comment (by RobK88):

 I am building with `+gfortran+openblas` since they are the default
 variants.

 You are right, builindg with just `+gfortran` made no difference. The
 build failed since the `py311-cython` libraries could not be found.
 P.S.  I also tried `sudo port install py311-numpy +gfortran -openblas`.
 Same error.

 I will try debugging as you suggested and will get back to you.


 {{{
 bash-3.2$ sudo port clean py311-numpy
 --->  Cleaning py311-numpy
 bash-3.2$

 bash-3.2$ sudo port install py311-numpy +gfortran
 Password:
 --->  Computing dependencies for py311-numpy
 --->  Fetching archive for py311-numpy
 --->  Attempting to fetch
 py311-numpy-1.26.1_0+gfortran+openblas.darwin_11.x86_64.tbz2 from
 http://packages.macports.org/py311-numpy
 --->  Attempting to fetch
 py311-numpy-1.26.1_0+gfortran+openblas.darwin_11.x86_64.tbz2 from
 http://ywg.ca.packages.macports.org/mirror/macports/packages/py311-numpy
 --->  Attempting to fetch
 py311-numpy-1.26.1_0+gfortran+openblas.darwin_11.x86_64.tbz2 from
 http://mirror.fcix.net/macports/packages/py311-numpy
 --->  Fetching distfiles for py311-numpy

 etc

 :info:build Build type: cross build
 :info:build Project name: NumPy
 :info:build Project version: 1.26.1
 :info:build C compiler for the host machine: cc -arch x86_64 (clang 4.2
 "Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)")
 :info:build C linker for the host machine: cc -arch x86_64 ld64 136
 :info:build C++ compiler for the host machine: c++ -arch x86_64 (clang 4.2
 "Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)")
 :info:build C++ linker for the host machine: c++ -arch x86_64 ld64 136
 :info:build ../../meson.build:1:0: ERROR: Unknown compiler(s):
 [['cython'], ['cython3']]
 :info:build The following exception(s) were encountered:
 :info:build Running `cython -V` gave "[Errno 2] No such file or directory:
 'cython'"
 :info:build Running `cython3 -V` gave "[Errno 2] No such file or
 directory: 'cython3'
 etc

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68545#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list