From: <can...@li...> - 2014-10-10 21:44:29
|
# HG changeset patch # User "Samuel Martin" <s.m...@gm...> # Date 1412977082 -7200 # Fri Oct 10 23:38:02 2014 +0200 # Node ID 4805f636c2317d989a5f704ba691369f41be6595 # Parent c408fdc77aa18fcda81db4f0d038e8a69ba84bb2 allow to set python interpreter Canfestival python modules and scripts are not python3 compliant. Allow to pass the python interperter to be used to make. Signed-off-by: Samuel Martin <s.m...@gm...> diff --git a/Makefile.in b/Makefile.in --- a/Makefile.in +++ b/Makefile.in @@ -21,6 +21,9 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +PYTHON ?= python +export PYTHON + all: objdictedit canfestival examples examples: canfestival driver diff --git a/doc/manual/en/manual.tex b/doc/manual/en/manual.tex --- a/doc/manual/en/manual.tex +++ b/doc/manual/en/manual.tex @@ -1134,6 +1134,7 @@ python objdictedit.py [od files...] \end{verbatim} +Note that Gnosis modules only run with python2 as interpreter. \subsubsection{Installation and usage on Windows} diff --git a/examples/CANOpenShell/Makefile.in b/examples/CANOpenShell/Makefile.in --- a/examples/CANOpenShell/Makefile.in +++ b/examples/CANOpenShell/Makefile.in @@ -69,11 +69,11 @@ CANOpenShellMasterOD.c: CANOpenShellMasterOD.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py CANOpenShellMasterOD.od CANOpenShellMasterOD.c + $(PYTHON) ../../objdictgen/objdictgen.py CANOpenShellMasterOD.od CANOpenShellMasterOD.c CANOpenShellSlaveOD.c: CANOpenShellSlaveOD.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py CANOpenShellSlaveOD.od CANOpenShellSlaveOD.c + $(PYTHON) ../../objdictgen/objdictgen.py CANOpenShellSlaveOD.od CANOpenShellSlaveOD.c %.o: %.c $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< diff --git a/examples/DS401_Master/Makefile.in b/examples/DS401_Master/Makefile.in --- a/examples/DS401_Master/Makefile.in +++ b/examples/DS401_Master/Makefile.in @@ -53,7 +53,7 @@ TestMaster.c: TestMaster.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c + $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c %.o: %.c $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< diff --git a/examples/DS401_Slave_Gui/Makefile.in b/examples/DS401_Slave_Gui/Makefile.in --- a/examples/DS401_Slave_Gui/Makefile.in +++ b/examples/DS401_Slave_Gui/Makefile.in @@ -59,7 +59,7 @@ ObjDict.c: ObjDict.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c + $(PYTHON) ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c .cpp.o: $(CXX) -c $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) `wx-config --cxxflags` $< -o $@ diff --git a/examples/SillySlave/Makefile.in b/examples/SillySlave/Makefile.in --- a/examples/SillySlave/Makefile.in +++ b/examples/SillySlave/Makefile.in @@ -53,7 +53,7 @@ SillySlave.c: SillySlave.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py SillySlave.od SillySlave.c + $(PYTHON) ../../objdictgen/objdictgen.py SillySlave.od SillySlave.c %.o: %.c $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< diff --git a/examples/TestMasterMicroMod/Makefile.in b/examples/TestMasterMicroMod/Makefile.in --- a/examples/TestMasterMicroMod/Makefile.in +++ b/examples/TestMasterMicroMod/Makefile.in @@ -61,7 +61,7 @@ TestMaster.c: TestMaster.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c + $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c %.o: %.c $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< diff --git a/examples/TestMasterSlave/Makefile.in b/examples/TestMasterSlave/Makefile.in --- a/examples/TestMasterSlave/Makefile.in +++ b/examples/TestMasterSlave/Makefile.in @@ -69,11 +69,11 @@ TestSlave.c: TestSlave.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c + $(PYTHON) ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c TestMaster.c: TestMaster.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c + $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c %.o: %.c $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< diff --git a/examples/TestMasterSlaveLSS/Makefile.in b/examples/TestMasterSlaveLSS/Makefile.in --- a/examples/TestMasterSlaveLSS/Makefile.in +++ b/examples/TestMasterSlaveLSS/Makefile.in @@ -64,15 +64,15 @@ TestSlaveA.c: TestSlaveA.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestSlaveA.od TestSlaveA.c + $(PYTHON) ../../objdictgen/objdictgen.py TestSlaveA.od TestSlaveA.c TestSlaveB.c: TestSlaveB.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestSlaveB.od TestSlaveB.c + $(PYTHON) ../../objdictgen/objdictgen.py TestSlaveB.od TestSlaveB.c TestMaster.c: TestMaster.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c + $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c %.o: %.c $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $< diff --git a/examples/kerneltest/Makefile.in b/examples/kerneltest/Makefile.in --- a/examples/kerneltest/Makefile.in +++ b/examples/kerneltest/Makefile.in @@ -79,10 +79,10 @@ TestSlave.c: TestSlave.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c + $(PYTHON) ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c TestMaster.c: TestMaster.od $(MAKE) -C ../../objdictgen gnosis - python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c + $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c #endif |