# HG changeset patch # User Doug Simon # Date 1417641015 -3600 # Node ID 39441c10d314d811ec23a64fb3e6262f138c91b0 # Parent 43e2cc9a4fde1d5c631569874e55d3b45922925d try to be more precise about python executable name diff -r 43e2cc9a4fde -r 39441c10d314 make/Makefile --- a/make/Makefile Wed Dec 03 18:53:22 2014 +0100 +++ b/make/Makefile Wed Dec 03 22:10:15 2014 +0100 @@ -306,9 +306,20 @@ $(MAKE_ARGS) $(VM_TARGET) + +ifeq (, $(shell python2.7 --version 2>/dev/null && echo ok)) + ifeq (, $(shell python2.6 --version 2>/dev/null && echo ok)) + PYTHON=python + else + PYTHON=python2.6 + endif +else + PYTHON=python2.7 +endif + # Builds code that can be shared among different build flavors buildshared: - python2 -u $(GAMMADIR)/mxtool/mx.py build --no-native --export-dir $(SHARED_DIR) + $(PYTHON) -u $(GAMMADIR)/mxtool/mx.py build --no-native --export-dir $(SHARED_DIR) # Export file rule generic_export: $(EXPORT_LIST)