mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
Merge remote-tracking branch 'origin/parched/OP-1324_fix_build_when_python_isnt_python2' into next
Conflicts: ground/openpilotgcs/src/python.pri
This commit is contained in:
commit
174b9bb611
@ -1,7 +1,7 @@
|
||||
# We use python to extract git version info and generate some other files,
|
||||
# but it may be installed locally. The expected python version should be
|
||||
# kept in sync with make/tools.mk.
|
||||
PYTHON_DIR = qt-5.3.1/Tools/mingw48_32/opt/bin
|
||||
PYTHON_DIR = qt-5.3.1/Tools/mingw482_32/opt/bin
|
||||
|
||||
ROOT_DIR = $$GCS_SOURCE_TREE/../..
|
||||
|
||||
@ -15,8 +15,12 @@ OPENPILOT_TOOLS_DIR = $$(OPENPILOT_TOOLS_DIR)
|
||||
PYTHON = \"$$ROOT_DIR/tools/$$PYTHON_DIR/python\"
|
||||
} else {
|
||||
# not found, hope it's in the path...
|
||||
!macx: { PYTHON = \"$$(PYTHON)\" }
|
||||
macx: { PYTHON = \"python\" }
|
||||
PYTHON_VER = "$$system(python --version 2>&1)"
|
||||
contains(PYTHON_VER, "Python 2.*") {
|
||||
PYTHON = \"python\"
|
||||
} else {
|
||||
PYTHON = \"python2\"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user