forked from SAP-archive/PyRFC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·62 lines (50 loc) · 1.22 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
OS := $(shell uname)
VERSION = `cat VERSION`
default:
@echo
@echo "Available tasks:"
@echo
@echo "inst - (re)installs dependencies"
@echo "wheel - build & install wheel"
@echo "egg - build & install egg"
@echo "test - test"
.PHONY: inst
inst: inst2 inst3
.PHONY: inst2
inst2: pip2 install --user cython pytest
.PHONY: inst3
inst3: pip3 install --user cython pytest
.PHONY: test
test: test2 test3
.PHONY: test2
test2:
python2 -m pytest -vv
.PHONY: test3
test3:
python3 -m pytest -vv
.PHONY: wheel
wheel: wheel2 wheel3
.PHONY: wheel2
wheel2: wheel2
-yes | pip2 uninstall pyrfc
python2 setup.py bdist_wheel
pip2 install --user dist/pyrfc-$(VERSION)-cp27-cp27mu-linux_x86_64.whl
#pip2 install --user dist/pyrfc-$(VERSION)-cp35-cp35m-win_amd64.whl
.PHONY: wheel3
wheel3: wheel3
-yes | pip3 uninstall pyrfc
python3 setup.py bdist_wheel
pip3 install --user dist/pyrfc-$(VERSION)-cp35-cp35m-linux_x86_64.whl
#pip2 install --user dist/pyrfc-$(VERSION)-cp27-cp27m-win_amd64.whl
.PHONY: egg
egg: egg2 egg3
.PHONY: egg2
egg2:
-yes | pip2 uninstall pyrfc
python2 setup.py bdist_egg
python2 setup.py install --user
.PHONY: egg3
egg3:
-yes | pip3 uninstall pyrfc
python3 setup.py bdist_egg
python3 setup.py install --user