detect python directory

This commit is contained in:
laurent.perron@gmail.com
2011-12-26 21:51:43 +00:00
parent 6098926bea
commit 830dfead63
2 changed files with 7 additions and 1 deletions

View File

@@ -61,6 +61,10 @@ ifeq ("$(SYSTEM)","win")
OS = Windows
TOP_AUX = $(shell cd)
TOP = $(shell echo $(TOP_AUX) | tools\\sed.exe -e "s/\\/\\\\/g")
ifneq ($(wildcard c:/python27/python.exe),)
WINDOWS_PYTHON_PATH = c:\\python27
PYTHONVERSION = 27
endif
endif

View File

@@ -177,6 +177,8 @@ install_python_modules:
Makefile.local:
@echo Generating Makefile.local
@echo WINDOWS_PYTHON_VER = $(PYTHONVERSION) > Makefile.local
@echo WINDOWS_PYTHON_INC=/I$(WINDOWS_PYTHON_PATH)\\include >> Makefile.local
@echo WINDOWS_PYTHON_LNK=$(WINDOWS_PYTHON_PATH)\\lib\\python$(PYTHONVERSION).lib >> Makefile.local
@echo WINDOWS_GFLAGS_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_PROTOBUF_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo WINDOWS_SPARSEHASH_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@@ -186,6 +188,6 @@ Makefile.local:
@echo WINDOWS_GLPK_DIR = $(TOP)\\dependencies\\install >> Makefile.local
@echo $(SCIP_MAKEFILE) >> Makefile.local
@echo $(SELECTED_JDK_DEF) >> Makefile.local
@echo $(SCIP_MAKEFILE)
@echo $(SCIP_MAKEFILE) >> Makefile.local