commit f69d8058328a18555fd64a6fb17210d5d761e80c Author: vaydheesh Date: Wed Jun 19 20:41:19 2019 +0000 Python wrapper: switched to distutils diff --git a/.travis.yml b/.travis.yml index 753e735..c6e4f40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ compiler: - clang - gcc before_install: - - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y swig python3-setuptools; else brew install swig; fi + - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y swig; else brew install swig; fi script: - ./autogen.sh - ./configure diff --git a/python/Makefile.am b/python/Makefile.am index d1b76ba..1d46a7e 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -1,9 +1,9 @@ SWIG_INTERFACE = lttoolbox.i -BUILT_SOURCES = lttoolbox_wrap.cpp +BUILT_SOURCES = %_wrap.cpp.cpp -lttoolbox_wrap.cpp: $(SWIG_INTERFACE) setup.py +%_wrap.cpp.cpp: $(SWIG_INTERFACE) setup.py $(PYTHON) setup.py build install-exec-local: - $(PYTHON) setup.py install + $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) diff --git a/python/setup.py.in b/python/setup.py.in index 3697604..14f64ab 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -4,7 +4,7 @@ Setup for SWIG Python bindings for lttoolbox """ from os import path -from setuptools import Extension, setup +from distutils.core import Extension, setup from distutils.command.build import build