• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/canfestival/0002-allow-to-set-python-interpreter.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
    $(CXX) -c $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) `wx-config --cxxflags` $< -o $@
 
1
From s.martin49@gmail.com Fri Oct 10 23:43:32 2014
2
Content-Type: text/plain; charset="us-ascii"
3
MIME-Version: 1.0
4
Content-Transfer-Encoding: 7bit
5
Subject: [PATCH] allow to set python interpreter
6
X-Mercurial-Node: 4805f636c2317d989a5f704ba691369f41be6595
7
X-Mercurial-Series-Index: 1
8
X-Mercurial-Series-Total: 1
9
Message-Id: <4805f636c2317d989a5f.1412977412@bobook>
10
X-Mercurial-Series-Id: <4805f636c2317d989a5f.1412977412@bobook>
11
User-Agent: Mercurial-patchbomb/3.1.2
12
Date: Fri, 10 Oct 2014 23:43:32 +0200
13
From: Samuel Martin <s.martin49@gmail.com>
14
To: canfestival-devel@lists.sourceforge.net
15
Cc: Samuel Martin <s.martin49@gmail.com>
16
​
17
# HG changeset patch
18
# User "Samuel Martin" <s.martin49@gmail.com>
19
# Date 1412977082 -7200
20
#      Fri Oct 10 23:38:02 2014 +0200
21
# Node ID 4805f636c2317d989a5f704ba691369f41be6595
22
# Parent  c408fdc77aa18fcda81db4f0d038e8a69ba84bb2
23
allow to set python interpreter
24
​
25
Canfestival python modules and scripts are not python3 compliant.
26
​
27
Allow to pass the python interperter to be used to make.
28
​
29
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
30
​
31
diff --git a/Makefile.in b/Makefile.in
32
--- a/Makefile.in
33
+++ b/Makefile.in
34
@@ -21,6 +21,9 @@
35
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
36
 # 
37
 
38
+PYTHON ?= python
39
+export PYTHON
40
+
41
 all: objdictedit canfestival examples
42
 
43
 examples: canfestival driver
44
diff --git a/doc/manual/en/manual.tex b/doc/manual/en/manual.tex
45
--- a/doc/manual/en/manual.tex
46
+++ b/doc/manual/en/manual.tex
47
@@ -1134,6 +1134,7 @@
48
    python objdictedit.py [od files...]
49
 \end{verbatim}
50
 
51
+Note that Gnosis modules only run with python2 as interpreter.
52
 
53
 \subsubsection{Installation and usage on Windows}
54
 
55
diff --git a/examples/CANOpenShell/Makefile.in b/examples/CANOpenShell/Makefile.in
56
--- a/examples/CANOpenShell/Makefile.in
57
+++ b/examples/CANOpenShell/Makefile.in
58
@@ -69,11 +69,11 @@
59
    
60
 CANOpenShellMasterOD.c: CANOpenShellMasterOD.od
61
    $(MAKE) -C ../../objdictgen gnosis
62
-   python ../../objdictgen/objdictgen.py CANOpenShellMasterOD.od CANOpenShellMasterOD.c
63
+   $(PYTHON) ../../objdictgen/objdictgen.py CANOpenShellMasterOD.od CANOpenShellMasterOD.c
64
 
65
 CANOpenShellSlaveOD.c: CANOpenShellSlaveOD.od
66
    $(MAKE) -C ../../objdictgen gnosis
67
-   python ../../objdictgen/objdictgen.py CANOpenShellSlaveOD.od CANOpenShellSlaveOD.c
68
+   $(PYTHON) ../../objdictgen/objdictgen.py CANOpenShellSlaveOD.od CANOpenShellSlaveOD.c
69
 
70
 %.o: %.c
71
    $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
72
diff --git a/examples/DS401_Master/Makefile.in b/examples/DS401_Master/Makefile.in
73
--- a/examples/DS401_Master/Makefile.in
74
+++ b/examples/DS401_Master/Makefile.in
75
@@ -53,7 +53,7 @@
76
    
77
 TestMaster.c: TestMaster.od
78
    $(MAKE) -C ../../objdictgen gnosis
79
-   python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
80
+   $(PYTHON) ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
81
 
82
 %.o: %.c
83
    $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
84
diff --git a/examples/DS401_Slave_Gui/Makefile.in b/examples/DS401_Slave_Gui/Makefile.in
85
--- a/examples/DS401_Slave_Gui/Makefile.in
86
+++ b/examples/DS401_Slave_Gui/Makefile.in
87
@@ -59,7 +59,7 @@
88
 
89
 ObjDict.c: ObjDict.od
90
    $(MAKE) -C ../../objdictgen gnosis
91
-   python ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c
92
+   $(PYTHON) ../../objdictgen/objdictgen.py ObjDict.od ObjDict.c
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.