Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3471
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/71/3471/1
run PythonTests with internal python too
... and use PYTHON_FOR_BUILD in the system python case.
Change-Id: If3c3305ab4f613642bea9b775e4c7a602f5a476c
TODO: needs testing on more platforms
---
M solenv/gbuild/PythonTest.mk
M sw/Module_sw.mk
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk
index cb018b1..199ffcc 100644
--- a/solenv/gbuild/PythonTest.mk
+++ b/solenv/gbuild/PythonTest.mk
@@ -9,10 +9,11 @@
# PythonTest class
-# TODO: FixMe problem with internal python:
-# Fatal Python error: Py_Initialize: Unable to get the locale encoding
-#gb_Python_EXE := $(call gb_Executable_get_command,python)
-gb_Python_EXE := python3
+ifeq ($(SYSTEM_PYTHON),NO)
+gb_Python_EXE := $(OUTDIR)/installation/opt/program/python.bin
+else
+gb_Python_EXE := $(PYTHON_FOR_BUILD)
+endif
gb_PythonTest_COMMAND := $(gb_Python_EXE) -m unittest
diff --git a/sw/Module_sw.mk b/sw/Module_sw.mk
index b1dbe2f..fedb44a 100644
--- a/sw/Module_sw.mk
+++ b/sw/Module_sw.mk
@@ -70,13 +70,10 @@
))
endif
-# TODO: FixMe restrict to system python
ifneq ($(DISABLE_PYTHON),TRUE)
-ifeq ($(SYSTEM_PYTHON),YES)
$(eval $(call gb_Module_add_subsequentcheck_targets,sw,\
PythonTest_sw_unoapi \
))
-endif
endif
# vim: set noet sw=4 ts=4:
--
To view, visit https://gerrit.libreoffice.org/3471
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If3c3305ab4f613642bea9b775e4c7a602f5a476c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Michael Stahl <mstahl@redhat.com>
Context
- [PATCH] run PythonTests with internal python too · Michael Stahl (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.