diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-07-24 12:00:47 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-07-24 12:03:21 +0200 |
commit | 8c9ed261cb9201774943e438cf5394c1dcfa8c49 (patch) | |
tree | 661458e17ffb4676e4e69246ad1f341af063a4d4 /solenv | |
parent | 3e4b0bde6252b80ccc99c8b9ae261d79456ba026 (diff) |
gbuild: AllLangMoTarget: stop reinventing the python wheel
It also doesn't work on WNT where python_shell does not exist, and on
OSX where python3 is not a Package but a GeneratedPackage.
Change-Id: Ia4004f56d9168a05b3bd49e66c30502962c07698
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/AllLangMoTarget.mk | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/solenv/gbuild/AllLangMoTarget.mk b/solenv/gbuild/AllLangMoTarget.mk index 8276f76a0b98..a16dc87f0064 100644 --- a/solenv/gbuild/AllLangMoTarget.mk +++ b/solenv/gbuild/AllLangMoTarget.mk @@ -25,14 +25,6 @@ # MoTarget -ifeq ($(SYSTEM_PYTHON),) -gb_Python_EXECUTABLE := $(gb_Python_INSTALLED_EXECUTABLE) -gb_Python_DEPS ?= $(call gb_Package_get_target,python3) $(call gb_Package_get_target,python_shell) -else -gb_Python_EXECUTABLE := $(PYTHON_FOR_BUILD) -gb_Python_DEPS := -endif - $(call gb_MoTarget_get_clean_target,%) : $(call gb_Output_announce,$*,$(false),RES,2) $(call gb_Helper_abbreviate_dirs,\ @@ -40,14 +32,17 @@ $(call gb_MoTarget_get_clean_target,%) : $(call gb_MoTarget_get_target,$*) \ $(call gb_MoTarget_get_install_target,$*)) -$(call gb_MoTarget_get_target,%) : $(gb_Helper_MISCDUMMY) $(gb_Python_DEPS) +$(call gb_MoTarget_get_target,%) : \ + $(gb_Helper_MISCDUMMY) \ + $(call gb_ExternalExecutable_get_dependencies,python) $(call gb_Output_announce,$*,$(true),MO,2) # after translate should look like this # $(call gb_Helper_abbreviate_dirs,\ # mkdir -p $(dir $@) && \ # $(MSGUNIQ) $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION)/messages.po | $(MSGFMT) - -o $@) $(call gb_Helper_abbreviate_dirs,\ - mkdir -p $(dir $@) && $(gb_Python_EXECUTABLE) $(SRCDIR)/solenv/bin/interim-update-module-for-gettext $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION) $@.po && \ + mkdir -p $(dir $@) && \ + $(call gb_ExternalExecutable_get_command,python) $(SRCDIR)/solenv/bin/interim-update-module-for-gettext $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION) $@.po && \ $(MSGUNIQ) --force-po $@.po | $(MSGFMT) - -o $@) #$(info $(call gb_MoTarget_get_target,$(1))) |