Skip to content

Commit

Permalink
fix(numpy)
Browse files Browse the repository at this point in the history
 closes #7542
  • Loading branch information
jhheider committed Oct 5, 2024
1 parent 706ba8c commit 5a5c007
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions projects/numpy.org/package.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
distributable:
url: https://github.com/numpy/numpy/releases/download/v{{version}}/numpy-{{version}}.tar.gz
strip-components: 1

versions:
github: numpy/numpy

dependencies:
openblas.net: ^0.3
python.org: ^3.11
gnu.org/gcc: ^13 #gfortran (no Fortran compiler found)

companions:
gnu.org/gcc: '*' #gfortran (no Fortran compiler found)

runtime:
env:
PYTHONPATH: $PYTHONPATH:{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages

build:
dependencies:
cython.org/libcython: '*'
Expand Down Expand Up @@ -41,11 +47,19 @@ build:
linux:
BLAS: ${{deps.openblas.net.prefix}}/lib/libopenblas.so
LAPACK: ${{deps.openblas.net.prefix}}/lib/libopenblas.so

provides:
- bin/f2py

test:
dependencies:
llvm.org: '*' # fails with gcc
script:
- python test.py
- f2py -v | grep {{version}}
- f2py -c -m test test.f90
- ls | grep test.cpython
- ls | grep test.cpython
env:
CC: clang
CXX: clang++
LD: clang

0 comments on commit 5a5c007

Please sign in to comment.