From 90129e622b34869d9b99e15036a30ca3015b08ac Mon Sep 17 00:00:00 2001 From: Josef Ridky Date: Tue, 17 Apr 2018 14:50:25 +0200 Subject: [PATCH] Add python3 option to swig --- 0003-Python3.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/0003-Python3.patch b/0003-Python3.patch index 7c7e9bb..7651762 100644 --- a/0003-Python3.patch +++ b/0003-Python3.patch @@ -90,7 +90,7 @@ diff -urNp a/configure.ac b/configure.ac fi diff -urNp a/swig/python/Makefile.am b/swig/python/Makefile.am --- a/swig/python/Makefile.am 2018-04-17 08:47:58.547283986 +0200 -+++ b/swig/python/Makefile.am 2018-04-17 13:08:09.752299116 +0200 ++++ b/swig/python/Makefile.am 2018-04-17 14:43:01.703963727 +0200 @@ -22,19 +22,14 @@ EXTRA_DIST = OpenIPMI_lang.i OpenIPMI.h OpenIPMI.pyc: OpenIPMI.py _OpenIPMI.la -PYTHONPATH=$(PYPATH) $(pythonprog) -c 'import OpenIPMI.py' @@ -99,7 +99,8 @@ diff -urNp a/swig/python/Makefile.am b/swig/python/Makefile.am - -PYTHONPATH=$(PYPATH) $(pythonprog) -O -c 'import OpenIPMI.py' - OpenIPMI_wrap.c OpenIPMI.py: $(top_srcdir)/swig/OpenIPMI.i OpenIPMI_lang.i - $(SWIG) $(DEFS) -python -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/python $< +- $(SWIG) $(DEFS) -python -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/python $< ++ $(SWIG) $(DEFS) -python -py3 -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/python $< -CLEANFILES = OpenIPMI_wrap.c OpenIPMI.py OpenIPMI.pyo OpenIPMI.pyc +CLEANFILES = OpenIPMI_wrap.c OpenIPMI.py @@ -124,7 +125,7 @@ diff -urNp a/swig/python/Makefile.am b/swig/python/Makefile.am rungui: diff -urNp a/swig/python/Makefile.in b/swig/python/Makefile.in --- a/swig/python/Makefile.in 2018-04-17 08:47:58.547283986 +0200 -+++ b/swig/python/Makefile.in 2018-04-17 13:08:50.130269660 +0200 ++++ b/swig/python/Makefile.in 2018-04-17 14:43:28.969899859 +0200 @@ -443,7 +443,7 @@ nodist__OpenIPMI_la_SOURCES = OpenIPMI_w _OpenIPMI_la_LDFLAGS = -module -avoid-version _OpenIPMI_la_LIBADD = $(OPENIPMI_SWIG_LIBS) $(PYTHON_POSIX_LIB) @@ -145,7 +146,8 @@ diff -urNp a/swig/python/Makefile.in b/swig/python/Makefile.in - -PYTHONPATH=$(PYPATH) $(pythonprog) -O -c 'import OpenIPMI.py' - OpenIPMI_wrap.c OpenIPMI.py: $(top_srcdir)/swig/OpenIPMI.i OpenIPMI_lang.i - $(SWIG) $(DEFS) -python -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/python $< +- $(SWIG) $(DEFS) -python -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/python $< ++ $(SWIG) $(DEFS) -python -py3 -o OpenIPMI_wrap.c -I$(top_srcdir)/swig/python $< -install-exec-local: _OpenIPMI.la OpenIPMI.py OpenIPMI.pyc OpenIPMI.pyo +install-exec-local: _OpenIPMI.la OpenIPMI.py