aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2018-12-18 22:28:23 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2018-12-19 18:10:21 +0000
commitb18956edd578f49f369f7b3863881d0fadb035df (patch)
tree7ee042b30488fad735056079f8bbb458f625f104 /src
parent2551ec357676843faf59792412bc538cb0335d2f (diff)
Windows: allow for python.exe in paths with spacesv5.12.0_QtAS
Change-Id: Icac6ada1549630ec1467f8262e2f402b6303d8df Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'src')
-rw-r--r--src/ivicore/configure.pri6
-rw-r--r--src/tools/ivigenerator/qface_internal_build.pri4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ivicore/configure.pri b/src/ivicore/configure.pri
index 2e6832c..8be7d6f 100644
--- a/src/ivicore/configure.pri
+++ b/src/ivicore/configure.pri
@@ -13,9 +13,9 @@ defineTest(qtConfTest_python3) {
isEmpty(python3_exe): \
next();
- qtRunLoggedCommand("$$python3_exe -c \"import platform; print(platform.python_version_tuple()[0])\"", py_major_version)|next()
+ qtRunLoggedCommand("$$shell_quote($$python3_exe) -c \"import platform; print(platform.python_version_tuple()[0])\"", py_major_version)|next()
equals(py_major_version, 3) {
- qtRunLoggedCommand("$$python3_exe -c \"import platform; print(platform.python_version())\"", python_version)|next()
+ qtRunLoggedCommand("$$shell_quote($$python3_exe) -c \"import platform; print(platform.python_version())\"", python_version)|next()
break()
}
}
@@ -41,7 +41,7 @@ defineTest(qtConfTest_python3_package) {
package = $$eval($${1}.package)
version = $$eval($${1}.version)
- qtRunLoggedCommand("$$python3_exe -c \"import pkg_resources; print(pkg_resources.get_distribution('$${package}').version)\"", package_version)|return(false)
+ qtRunLoggedCommand("$$shell_quote($$python3_exe) -c \"import pkg_resources; print(pkg_resources.get_distribution('$${package}').version)\"", package_version)|return(false)
!isEmpty(version) {
qtLog("Also checking for the exact version:")
qtLog("Expected: $$version")
diff --git a/src/tools/ivigenerator/qface_internal_build.pri b/src/tools/ivigenerator/qface_internal_build.pri
index 250b0e0..25a9676 100644
--- a/src/tools/ivigenerator/qface_internal_build.pri
+++ b/src/tools/ivigenerator/qface_internal_build.pri
@@ -9,10 +9,10 @@ debug_and_release:build_pass:CONFIG(release, debug|release) {
include($$shadowed($$PWD/../../ivicore/qtivicore-config.pri))
-VIRTUALENV_EXE = $$QMAKE_PYTHON3_LOCATION -m virtualenv
+VIRTUALENV_EXE = $$shell_quote($$QMAKE_PYTHON3_LOCATION) -m virtualenv
# virtualenv is always using the default interpreter, which is python2 on many systems"
# by adding -p we enforce that the python3 interpreter is used and make sure python3 is installed in the virtualenv
-VIRTUALENV_EXE += " -p $$QMAKE_PYTHON3_LOCATION"
+VIRTUALENV_EXE += " -p $$shell_quote($$QMAKE_PYTHON3_LOCATION)"
# Use a Python virtualenv for installing qface, so we don't pollute the user environment
# On some systems virtualenv --always-copy doesn't work (https://github.com/pypa/virtualenv/issues/565).