File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
MIN_NODE_VER := 14
2
2
MIN_NPM_VER := 6
3
- MIN_PY_VER := 3. 8
3
+ MIN_PY3_VER := 8
4
4
NODE_VER := $(shell node -v | cut -d. -f1 | sed 's/^v\(.* \) /\1/')
5
5
NPM_VER := $(shell npm -v | cut -d. -f1)
6
- PY_VER := $(shell python -c "import sys;print( sys.version.split() [0] )")
7
- PY_OK := $(shell python -c "from packaging import version; print(int(version.parse(' $( PY_VER ) ') >= version.parse(' $( MIN_PY_VER ) ' )))")
6
+ PY3_VER := $(shell python3 -c "import sys;t='{v[1]}'.format(v=list( sys.version_info[:2]) );print(t )")
7
+ PY_OK := $(shell python3 -c "print(int($( PY3_VER ) >= $( MIN_PY3_VER ) ) )")
8
8
9
9
all :
10
10
@echo " \nThere is no default Makefile target right now. Try:\n"
@@ -33,7 +33,7 @@ check-npm:
33
33
.PHONY : check-python
34
34
check-python :
35
35
@if [ $( PY_OK) -eq 0 ]; then \
36
- echo " \033[0;31mRequires Python $( MIN_PY_VER ) .x or higher: $( PY_VER ) detected.\033[0m" ; \
36
+ echo " \033[0;31mRequires Python 3. $( MIN_PY3_VER ) .x or higher: 3. $( PY3_VER ) detected.\033[0m" ; \
37
37
false ; \
38
38
fi
39
39
You can’t perform that action at this time.
0 commit comments