blob: 5380cf3b31c787f3e94ed3161e965b5acae63a51 (
plain)
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
|
diff --unified --recursive --text --color linode-cli-3.2.1.20201118.orig/Makefile linode-cli-3.2.1.20201118.new/Makefile
--- linode-cli-3.2.1.20201118.orig/Makefile 2020-11-18 08:16:03.000000000 +1300
+++ linode-cli-3.2.1.20201118.new/Makefile 2021-02-07 11:19:10.385802718 +1300
@@ -2,39 +2,25 @@
# Makefile for more convenient building of the Linode CLI and its baked content
#
-PYTHON ?= 3
SPEC ?= https://www.linode.com/docs/api/openapi.yaml
-ifeq ($(PYTHON), 3)
- PYCMD=python3
- PIPCMD=pip3
-else
- PYCMD=python
- PIPCMD=pip
-endif
-
install: check-prerequisites requirements build
- ls dist/ | xargs -I{} $(PIPCMD) install --force dist/{}
+ ls dist/ | xargs -I{} pip install --force dist/{}
.PHONY: build
build: clean
python -m linodecli bake ${SPEC} --skip-config
- python3 -m linodecli bake ${SPEC} --skip-config
- cp data-2 linodecli/
cp data-3 linodecli/
- $(PYCMD) setup.py bdist_wheel --universal
+ python setup.py bdist_wheel --universal
.PHONY: requirements
requirements:
pip install -r requirements.txt
- pip3 install -r requirements.txt
.PHONY: check-prerequisites
check-prerequisites:
@ pip -v >/dev/null
- @ pip3 -v >/dev/null
@ python -V >/dev/null
- @ python3 -V >/dev/null
.PHONY: clean
clean:
|