-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (38 loc) · 934 Bytes
/
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
SHELL:=/bin/bash
UNAME:=$(shell uname)
export PATH:=$(CURDIR)/conda/bin:$(PATH)
unexport PYTHONPATH
unexport PYTHONHOME
ifeq ($(UNAME), Darwin)
CONDASH:=Miniconda2-4.5.4-MacOSX-x86_64.sh
endif
ifeq ($(UNAME), Linux)
CONDASH:=Miniconda2-4.5.4-Linux-x86_64.sh
endif
CONDAURL:=https://repo.continuum.io/miniconda/$(CONDASH)
conda:
@echo ">>> Setting up conda..."
wget "$(CONDAURL)" && \
bash "$(CONDASH)" -b -p conda && \
rm -f "$(CONDASH)"
conda-install: conda
conda install -y -c anaconda \
pyyaml=5.1
# setup virtual environment for Python 2.7
venv/bin/activate:
export PYTHONPATH= && \
virtualenv venv --no-site-packages
activate: venv/bin/activate
ln -fs venv/bin/activate activate
install: venv/bin/activate activate
export PYTHONPATH= && \
source venv/bin/activate && \
pip install -r requirements.txt
# cleanup
clean:
rm -f fixtures/foo*_*
rm -f fixtures/test_dump.csv
test:
python test.py
bash:
bash