forked from hashdist/hashstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnumpy.yaml
More file actions
71 lines (64 loc) · 1.83 KB
/
numpy.yaml
File metadata and controls
71 lines (64 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
extends: [distutils_package]
dependencies:
build: [blas]
run: [blas]
sources:
- key: tar.gz:zzluhi5cjpyt4a3t7lvsicyi4sgrhhtd
url: http://downloads.sourceforge.net/numpy/numpy-1.8.2.tar.gz
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
EOF
- when: platform == 'linux'
name: set-LDFLAGS
before: install
handler: bash
bash: |
export LDFLAGS="-shared -Wl,-rpath=${PYTHON_DIR}/lib -Wl,-rpath=${OPENBLAS_DIR}/lib $(${PYTHON_DIR}/bin/python-config --ldflags)"
#export ATLAS=None
#export LAPACK=None
#export BLAS=None
- when: machine == 'CrayXE6'
name: create-site.cfg
after: prologue
before: install
handler: bash
bash: |
cat > site.cfg << EOF
[DEFAULT]
library_dirs = ${ACML_DIR}/gfortran64/lib
libraries = acml
EOF
- when: machine == 'CrayXE6'
name: set-LDFLAGS
after: prologue
before: install
handler: bash
bash: |
export LDFLAGS="-shared -Wl,-rpath=${PYTHON_DIR}/lib -Wl,-rpath=${ACML_DIR}/gfortran64/lib $(${PYTHON_DIR}/bin/python-config --ldflags)"
export LAPACK=acml
export BLAS=acml
export ATLAS=None
- when: platform == 'Cygwin'
name: set-LDFLAGS
before: install
handler: bash
bash: |
export LDFLAGS="-shared -Wl,-rpath=${PYTHON_DIR}/lib -Wl,-rpath=/usr/lib $(${PYTHON_DIR}/bin/python-config --ldflags)"
#export ATLAS=None
export LAPACK=None
export BLAS=None