- modified the makefile file (contribution from @Paul Munsch on bitbucket)

- fixed an error from using the latest numpy version regarding missing Inf attribute (now it is inf, lower case)
This commit is contained in:
Marius Stanciu
2025-02-02 03:45:27 +02:00
parent 4bf271c25a
commit 15525b13d4
8 changed files with 37 additions and 10 deletions

View File

@@ -14,11 +14,15 @@ ASSEST_PATH = assets/linux
INSTALL_PATH = /usr/share/flatcam-beta
APPS_PATH = /usr/share/applications
MIN_PY3_MINOR_VERSION := 6
PY3_MINOR_VERSION := $(shell python3 --version | cut -d'.' -f2)
MIN_PY3_MINOR_VERSION := 8
# required version
MIN_PY3_MINOR_VERSION := $(shell python3 -c 'import sys; print($(MIN_PY3_MINOR_VERSION))')
ifneq ($(MIN_PY3_MINOR_VERSION), $(firstword $(sort $(PY3_MINOR_VERSION) $(MIN_PY3_MINOR_VERSION))))
$(info Current python version is 3.$(PY3_MINOR_VERSION))
# current version minimized to required (to allow ifneq test)
PY3_MIN_MINOR_VERSION := $(shell python3 -c 'import sys; print(min($(MIN_PY3_MINOR_VERSION),sys.version_info.minor))')
ifneq ($(MIN_PY3_MINOR_VERSION), $(PY3_MIN_MINOR_VERSION))
$(info Current python version is 3.$(PY3_MIN_MINOR_VERSION))
$(error You must have at least 3.$(MIN_PY3_MINOR_VERSION) installed)
endif