Make build toolchain and Debian packaging ready for Python 3

parent cfe856b2
......@@ -185,8 +185,8 @@ EXTRA_DIST+= ./dist/debian/control
EXTRA_DIST+= ./dist/debian/copyright
EXTRA_DIST+= ./dist/debian/docs
EXTRA_DIST+= ./dist/debian/mkdeb.sh
EXTRA_DIST+= ./dist/debian/python-stfio.files
EXTRA_DIST+= ./dist/debian/python-stfio.install
EXTRA_DIST+= ./dist/debian/python3-stfio.files
EXTRA_DIST+= ./dist/debian/python3-stfio.install
EXTRA_DIST+= ./dist/debian/rules
EXTRA_DIST+= ./dist/debian/stimfit.1
EXTRA_DIST+= ./dist/debian/stimfit.desktop
......
......@@ -57,7 +57,7 @@ AC_ARG_ENABLE([python],
AM_CONDITIONAL(BUILD_PYTHON, test "$enable_python" = "yes")
if (test "$enable_python" = "yes") || (test "$enable_module" = "yes"); then
AC_PYTHON_DEVEL
AC_PYTHON_DEVEL()
AC_PROG_SWIG(1.3.17)
SWIG_ENABLE_CXX
SWIG_PYTHON
......
......@@ -9,7 +9,7 @@ Homepage: http://www.stimfit.org
Package: stimfit
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, libsuitesparse-dev, zlib1g-dev, python3-wxgtk4.0, python3-numpy, python3-matplotlib
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, libsuitesparse-dev, zlib1g-dev, python3-wxgtk4.0, python3-numpy, python3-matplotlib
Recommends: python3-scipy
Description: Program for viewing and analyzing electrophysiological data
Stimfit is a free, fast and simple program for viewing and analyzing
......@@ -33,8 +33,8 @@ Description: Debug symbols for stimfit
Package: python3-stfio
Section: python
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, libsuitesparse-dev, zlib1g-dev, python3-numpy
Provides: ${python:Provides}
Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}, libsuitesparse-dev, zlib1g-dev, python3-numpy
Provides: ${python3:Provides}
Recommends: python3-matplotlib, python3-scipy, python3-pandas
Description: Python module to read common electrophysiology file formats.
The stfio module allows you to read common electrophysiology file formats
......
......@@ -47,14 +47,14 @@ clean:
install: build
dh_autoreconf
./configure --enable-python --enable-debian --with-biosiglite --prefix=$(DEBPREFIX) $(WXCONFIG_OPTS)
PYTHON=/usr/bin/python$(PYVER) PYTHON_VERSION=$(PYVER) ./configure --enable-python --enable-debian --with-biosiglite --prefix=$(DEBPREFIX) $(WXCONFIG_OPTS)
$(MAKE)
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
$(MAKE) check
endif
$(MAKE) install
./configure --enable-module --enable-debian --with-biosiglite --prefix=$(DEBPREFIX) $(WXCONFIG_OPTS)
PYTHON=/usr/bin/python$(PYVER) PYTHON_VERSION=$(PYVER) ./configure --enable-module --enable-debian --with-biosiglite --prefix=$(DEBPREFIX) $(WXCONFIG_OPTS)
$(MAKE)
$(MAKE) install
......
......@@ -46,7 +46,7 @@ to something else than an empty string.
if test -n "$1"; then
AC_MSG_CHECKING([for a version of Python $1])
ac_supports_python_ver=`$PYTHON -c "import sys, string; \
ver = string.split(sys.version)[[0]]; \
ver = sys.version.split()[[0]]; \
sys.stdout.write(ver + '$1' + '\n')"`
if test "$ac_supports_python_ver" = "True"; then
AC_MSG_RESULT([yes])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment