Add minium python version check
This commit is contained in:
8
Makefile
8
Makefile
@@ -14,6 +14,14 @@ ASSEST_PATH = assets/linux
|
|||||||
INSTALL_PATH = /usr/share/flatcam-beta
|
INSTALL_PATH = /usr/share/flatcam-beta
|
||||||
APPS_PATH = /usr/share/applications
|
APPS_PATH = /usr/share/applications
|
||||||
|
|
||||||
|
MIN_PY3_MINOR_VERSION := 5
|
||||||
|
PY3_MINOR_VERSION := $(shell python3 --version | cut -d'.' -f2)
|
||||||
|
|
||||||
|
ifneq ($(MIN_PY3_MINOR_VERSION), $(firstword $(sort $(PY3_MINOR_VERSION) $(MIN_PY3_MINOR_VERSION))))
|
||||||
|
$(info Current python version is "3.$(PY3_MINOR_VERSION)")
|
||||||
|
$(error You must have at least 3.$(MIN_PY3_MINOR_VERSION) installed)
|
||||||
|
endif
|
||||||
|
|
||||||
install:
|
install:
|
||||||
ifeq ($(USER_ID), 0)
|
ifeq ($(USER_ID), 0)
|
||||||
@ echo "Installing it system-wide"
|
@ echo "Installing it system-wide"
|
||||||
|
|||||||
Reference in New Issue
Block a user