Skip to content
Open
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
35 changes: 31 additions & 4 deletions pkgs/scipy/scipy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,48 @@ when platform != 'linux':
when platform == 'linux':
extends: [distutils_package, libflags]
dependencies:
build: [lapack, numpy]
build: [lapack, numpy, suitesparse]
run: [lapack, numpy]

sources:
- url: http://downloads.sourceforge.net/scipy/scipy-0.13.3.tar.gz
key: tar.gz:vhrty7xamdbvzvog5y5mtzpjxo4zegox

build_stages:

- when: platform == 'linux'
name: create-site.cfg
before: install
handler: bash
bash: |
cat > site.cfg << EOF
[blas_opt]
blas_libs = openblas
library_dirs = ${OPENBLAS_DIR}/lib
[lapack_opt]
lapack_libs = openblas
library_dirs = ${OPENBLAS_DIR}/lib
[openblas]
libraries = openblas
library_dirs = ${OPENBLAS_DIR}/lib
include_dirs = ${OPENBLAS_DIR}/include
[amd]
library_dirs = ${SUITESPARSE_DIR}/lib
include_dirs = ${SUITESPARSE_DIR}/include/suitesparse
[umfpack]
library_dirs = ${SUITESPARSE_DIR}/lib
include_dirs = ${SUITESPARSE_DIR}/include/suitesparse
EOF


- when: platform == 'linux'
name: set-lapack-paths
after: libflags
before: install
handler: bash
bash: |
export LDFLAGS="$LDFLAGS -shared"
export ATLAS=$LAPACK_DIR
export BLAS=$LAPACK_DIR
export LAPACK=$LAPACK_DIR
#export UMFPACK=${UMFPACK_DIR}
#export ATLAS=$LAPACK_DIR
#export BLAS=$LAPACK_DIR
#export LAPACK=$LAPACK_DIR