fix TypeError: environment can only contain strings
@@ -468,6 +468,9 @@ set(QIBUILD_PYTHON_PATH "%s" CACHE STRING "" FORCE)
def _install_component(self, destdir, component):
build_env = self.build_env.copy()
+ if sys.platform.startswith("win"):
+ build_env["DESTDIR"] = destdir.encode('ascii')
+ else:
build_env["DESTDIR"] = destdir
cmake_args = list()
