-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
58 lines (43 loc) · 1.97 KB
/
Makefile
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
PIP_FLAG = #--user
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
# if installing by hand, this should be put in file .numpy-site.cfg before installing scikits.samplerate
# with pip
define NUMPY_SITE_CFG
[samplerate]
library_dirs = $(MAKEFILE_DIR)/libsamplerate/lib/
include_dirs = $(MAKEFILE_DIR)/libsamplerate/include/
endef
export NUMPY_SITE_CFG
#put into readme or install.md
#clone-repository:
# git clone https://[email protected]/robintibor/machine-learning-for-motor-imagery.git
requirements: libs scikits-samplerate
libs:
sudo apt-get install liblas-dev liblapack-dev gfortran libyaml-dev cython\
libfreetype6-dev
scikits-samplerate:
wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz
tar -xvf libsamplerate-0.1.8.tar.gz
cd libsamplerate-0.1.8 && \
./configure --prefix=$(MAKEFILE_DIR)/libsamplerate/ && \
make && \
make install && \
ldconfig -v
install: python-packages theano pylearn2 wyrm lasagne scikits-samplerate-pip braindecode
python setup.py develop $(PIP_FLAG)
python-packages:
pip install --upgrade pip $(PIP_FLAG)
pip install --upgrade distribute $(PIP_FLAG)
pip install numpy scipy matplotlib scikit-learn pytest h5py jupyter seaborn pandas $(PIP_FLAG)
theano:
pip install git+https://github.com/Theano/Theano.git@7943ab37580fc#egg=Theano==0.8.git --no-deps $(PIP_FLAG)
pylearn2:
pip install -e git+https://github.com/lisa-lab/pylearn2.git@8bd3cc2ecd4062b425d938d68024276592bce1a7#egg=pylearn2-master $(PIP_FLAG) --src pylearn2
wyrm:
pip install -e git+https://github.com/bbci/wyrm.git@e976e500914cce720a659025c18efc338b408721#egg=Wyrm-master $(PIP_FLAG) --src wyrm
lasagne:
pip install git+https://github.com/Lasagne/Lasagne.git@0440814d4e7936de8423c29bbf9d5423ccc28ee8 $(PIP_FLAG)
scikits-samplerate-pip:
(test -e ~/.numpy-site.cfg && grep -q 'samplerate' ~/.numpy-site.cfg) || echo "$$NUMPY_SITE_CFG" >> ~/.numpy-site.cfg
# check first if file exists and already has samplerate info
pip install scikits.samplerate $(PIP_FLAG)