Repository navigation
Expand file tree
/
Copy pathmeta.yaml
More file actions
68 lines (58 loc) · 1.8 KB
/
Copy pathmeta.yaml
File metadata and controls
68 lines (58 loc) · 1.8 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
{% set conda_package_nonexistent = (
"pymanopt",
) %}
{% set data = load_setup_py_data() %}
package:
# Repeating name because of the following issue:
# https://github.com/conda/conda-build/issues/2475
name: brainiak
version: {{ GIT_DESCRIBE_TAG[1:] }}
about:
home: {{ data.get('url') }}
license: {{ data.get('license') }}
summary: {{ data.get('description') }}
source:
path: ../
build:
number: {{ GIT_DESCRIBE_NUMBER }}
script_env:
# We need the source directory because conda removes source / working
# directories by the time we reach the test phase. We can optionally pass in
# the --keep-old-work flag later on to use the $PREFIX/work directory
- BRAINIAK_HOME
- MKL_THREADING_LAYER
- KMP_DUPLICATE_LIB_OK
requirements:
build:
- {{ compiler('cxx') }}
host:
- python
- setuptools
- pip
- openmp
{% for req in data.get('setup_requires', [])
if req not in conda_package_nonexistent -%}
- {{req}}
{% endfor %}
{% for req in data.get('install_requires', [])
if req not in conda_package_nonexistent -%}
- {{req}}
{% endfor %}
run:
- python
- openmp
{% for req in data.get('install_requires', [])
if req not in conda_package_nonexistent -%}
- {{req}}
{% endfor %}
test:
commands:
- find $BRAINIAK_HOME/tests | grep pycache | xargs rm -rf
- mpiexec -n 2 pytest $BRAINIAK_HOME
# Known issue: https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
- python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
- conda inspect linkages -p $PREFIX brainiak # [not win]
- conda inspect objects -p $PREFIX brainiak # [osx]
requires:
- pytest
- numdifftools