Skip to content

Commit 78f695f

Browse files
committed
added snapshot of pymatbridge and host-matlab pkg
1 parent 35dc43b commit 78f695f

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

pkgs/host-matlab.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
when_build_dependency:
2+
- {set: 'MATLAB', value: '{{HOST_MATLAB}}'}

pkgs/pymatbridge.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
extends: [distutils_package]
2+
dependencies:
3+
build: [python, ipython, zmq, pyzmq, matlab]
4+
run: [python, ipython, zmq, pyzmq, matlab]
5+
6+
sources:
7+
- key: git:1c589c39713218f38b9e59e882330b7a1355d8a1
8+
url: https://github.com/arokem/python-matlab-bridge.git
9+
10+
build_stages:
11+
- when: platform == 'linux'
12+
name: config
13+
after: setup_dirs
14+
before: install
15+
handler: bash
16+
bash: |
17+
cd messenger/mexa64
18+
echo "MATLAB_BIN=$(dirname $MATLAB)" > local.cfg
19+
echo "HEADER_PATH=$ZMQ_DIR/include" >> local.cfg
20+
echo "LIB_PATH=$ZMQ_DIR/lib" >> local.cfg
21+
MATLAB=$(dirname $(dirname $MATLAB)) $PYTHON make.py
22+
cp messenger.mexa64 ../../pymatbridge/matlab
23+
cd ../..
24+
25+
- when: platform == 'Darwin'
26+
name: config
27+
after: setup_dirs
28+
before: install
29+
handler: bash
30+
bash: |
31+
cd messenger/mexmaci64
32+
echo "MATLAB_BIN=$(dirname $MATLAB)" > local.cfg
33+
echo "HEADER_PATH=$ZMQ_DIR/include" >> local.cfg
34+
echo "LIB_PATH=$ZMQ_DIR/lib" >> local.cfg
35+
MATLAB=$(dirname $(dirname $MATLAB)) $PYTHON make.py
36+
cp messenger.mexmaci64 ../../pymatbridge/matlab
37+
cd ../..

0 commit comments

Comments
 (0)