Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
#!/bin/bash
cd $RECIPE_DIR/..
LDFLAGS="-shared" FFLAGS="-fPIC" $PYTHON setup.py install

# conda's activate-gcc_linux-64.sh sets LDFLAGS to have the directory
# entries for finding libpython, liblapack, etc., so we can't
# overwrite it
export LDFLAGS="-shared $LDFLAGS"

# conda's activate-gfortran_linux-64.sh sets F95, but
# numpy.distutils.fcompiler looks for F90
# this is hopefully a temporary hack
if [ ! -v F90 ]; then
if [ ! -v F95 ]; then
echo "build.sh:error: neither F90 nor F95 variable set"
exit 1
fi
export F90="$F95"
fi

$PYTHON setup.py install
11 changes: 4 additions & 7 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ build:
number: 1

requirements:
build:
host:
- python
- numpy
- lapack
- m2w64-gcc-fortran # [win]
- gfortran_linux-64 # [linux]
- gfortran_osx-64 # [osx]
- {{ compiler('fortran') }}
- openblas

run:
- python
- numpy
- lapack
- libgfortran
- libopenblas

test:
imports:
Expand Down