1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Revert "Merge remote-tracking branch 'origin/parched/OP-1324_fix_build_when_python_isnt_python2' into next"

This reverts commit 4592de13bda5c825fc2a6065e8e4978330ceaca2, reversing
changes made to a309537e62aa938e483f8b21204f95da91244ed9.
This commit is contained in:
Fredrik Larson 2014-08-16 23:53:02 +10:00
parent 4592de13bd
commit 449653f01e
2 changed files with 2 additions and 6 deletions

View File

@ -15,7 +15,7 @@ OPENPILOT_TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
PYTHON = \"$$ROOT_DIR/tools/$$PYTHON_DIR/python\" PYTHON = \"$$ROOT_DIR/tools/$$PYTHON_DIR/python\"
} else { } else {
# not found, hope it's in the path... # not found, hope it's in the path...
PYTHON = $$(PYTHON) PYTHON = \"python\"
} }
} }

View File

@ -690,11 +690,7 @@ ifeq ($(shell [ -d "$(PYTHON_DIR)" ] && $(ECHO) "exists"), exists)
else else
# not installed, hope it's in the path... # not installed, hope it's in the path...
# $(info $(EMPTY) WARNING $(call toprel, $(PYTHON_DIR)) not found, using system PATH) # $(info $(EMPTY) WARNING $(call toprel, $(PYTHON_DIR)) not found, using system PATH)
ifeq ($(findstring Python 2,$(shell python --version)), Python 2) export PYTHON := python
export PYTHON := python
else
export PYTHON := python2
endif
endif endif
.PHONY: python_version .PHONY: python_version