1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

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

This reverts commit 449653f01e.
This commit is contained in:
Corvus Corax 2014-08-16 23:59:37 +02:00
parent c620c7fc29
commit bc8ccb7be7
2 changed files with 6 additions and 2 deletions

View File

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

View File

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