From s.martin49@gmail.com Fri Oct 10 23:43:32 2014
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: [PATCH] allow to set python interpreter
X-Mercurial-Node: 4805f636c2317d989a5f704ba691369f41be6595
X-Mercurial-Series-Index: 1
X-Mercurial-Series-Total: 1
Message-Id: <4805f636c2317d989a5f.1412977412@bobook>
X-Mercurial-Series-Id: <4805f636c2317d989a5f.1412977412@bobook>
User-Agent: Mercurial-patchbomb/3.1.2
Date: Fri, 10 Oct 2014 23:43:32 +0200
From: Samuel Martin <s.martin49@gmail.com>
To: canfestival-devel@lists.sourceforge.net
Cc: Samuel Martin <s.martin49@gmail.com>
# User "Samuel Martin" <s.martin49@gmail.com>
# 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.martin49@gmail.com>
diff --git a/Makefile.in b/Makefile.in
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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
python objdictedit.py [od files...]
+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
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
$(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
TestMaster.c: TestMaster.od
$(MAKE) -C ../../objdictgen gnosis
- python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
+ $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.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
$(MAKE) -C ../../objdictgen gnosis
- python ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c
+ $(PYTHON) ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c