-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
109 lines (81 loc) · 2.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
VERSION=`cat src/version.py | sed 's/__version__=//;s/"//g'`
ARCH="linux-x86_64"
default: tags cscope
run:
python -m src.main
dev:
TURBO_PUDGY=1 python -m src.main
setup: install-deps setup-db
setup-db:
RESET=1 python src/models.py
install-deps:
pip install -r requirements.txt
tags:
ctags-exuberant -R src/
cscope:
pycscope -R -S src/
sybil:
mkdir -p build/go
GOPATH=`readlink -f build/go` go get github.com/logv/sybil
mkdir -p src/backend/bin/
cp build/go/bin/sybil src/backend/bin/sybil
virtualenv2:
virtualenv dev2 -p python2
virtualenv3:
virtualenv dev3 -p python3
virtualenv: virtualenv2 virtualenv3
binary2:
rm dist/*whl; \
mkdir -p dist/current; \
. dev2/bin/activate; \
python setup.py bdist_wheel; \
echo ${PWD}; \
mv dist/snorkel_lite*whl dist/current/snorkel_lite-current-py2-none-any.whl
binary3:
rm dist/*whl; \
mkdir -p dist/current; \
. dev3/bin/activate; \
python setup.py bdist_wheel; \
echo ${PWD}; \
mv dist/snorkel_lite*whl dist/current/snorkel_lite-current-py3-none-any.whl
macosx2:
rm dist/*whl; \
mkdir -p dist/current; \
. dev2/bin/activate; \
MACOSX_BUILD=y python setup.py bdist_wheel -p macosx_10_11_x86_64; \
echo ${PWD}; \
mv dist/snorkel_lite*whl dist/current/
macosx3:
rm dist/*whl; \
mkdir -p dist/current; \
. dev3/bin/activate; \
MACOSX_BUILD=y python setup.py bdist_wheel -p macosx_10_11_x86_64; \
echo ${PWD}; \
mv dist/snorkel_lite*whl dist/current/
binary-package: binary2 binary3 macosx2 macosx3
upload2:
. dev2/bin/activate; \
python setup.py bdist_wheel -p manylinux1_x86_64 upload; \
upload3:
. dev3/bin/activate; \
python setup.py bdist_wheel -p manylinux1_x86_64 upload; \
uploadosx2:
. dev2/bin/activate; \
MACOSX_BUILD=y python setup.py bdist_wheel -p macosx_10_11_x86_64 upload;
uploadosx3:
. dev3/bin/activate; \
MACOSX_BUILD=y python setup.py bdist_wheel -p macosx_10_11_x86_64 upload;
upload-package: upload2 upload3 uploadosx2 uploadosx3
source-package:
python setup.py sdist build
cp dist/snorkel-lite-${VERSION}.tar.gz dist/snorkel-lite-current.tar.gz
docker2:
docker build . --tag e2e_snorkel2 -f dockers/Dockerfile.py2
docker3:
docker build . --tag e2e_snorkel3 -f dockers/Dockerfile.py3
dockercypress:
docker build . --tag e2e_cypress -f dockers/Dockerfile.cypress
cypress: docker2 docker3
. scripts/run_e2e_py2_tests.sh
. scripts/run_e2e_py3_tests.sh
.PHONY: tags clean build cscope run dev docker2 docker3