Commit 17ce4364 authored by Ruben Undheim's avatar Ruben Undheim

Build for python3 also

parent f392fe3c
......@@ -16,9 +16,11 @@ Build-Depends: debhelper (>= 11),
# and dh-octave in sid
dh-octave | octave-pkg-dev,
cython,
cython3,
chrpath,
dh-python,
python-all,
python3-all,
txt2man
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/science-team/openems
......@@ -147,3 +149,19 @@ Description: Python interface for openems
.
openEMS is a simulator for electromagnetic problems using
the FDTD algorithm.
Package: python3-openems
Architecture: any
Section: python
Depends: ${shlibs:Depends},
${misc:Depends},
${python3:Depends},
openems,
python3,
python3-h5py
Description: Python3 interface for openems
This package contains the Python-files needed for
openEMS (Python 3).
.
openEMS is a simulator for electromagnetic problems using
the FDTD algorithm.
openEMS/python/debian/tmp/usr/lib usr/
CSXCAD/python/debian/tmp/usr/lib usr/
openEMS/python/debian/tmp/usr/lib/python2* usr/lib/
CSXCAD/python/debian/tmp/usr/lib/python2* usr/lib/
openEMS/python/debian/tmp/usr/lib/python3* usr/lib/
CSXCAD/python/debian/tmp/usr/lib/python3* usr/lib/
......@@ -19,11 +19,12 @@ OCTAVE_API_VERSION = $(shell octave-config -p API_VERSION)
OCTAVE_FULLBPATH = $(OCTAVE_BPATH)/openems-0.0.35/$(OCTAVE_HOSTTYPE)-$(OCTAVE_API_VERSION)
PYTHON2VERSIONS := $(shell pyversions -s -v)
PYTHON3VERSIONS := $(shell py3versions -s -v)
export CXXFLAGS := $(CXXFLAGS) -DSSE_CORRECT_DENORMALS=0
%:
dh $@ --with python2
dh $@ --with python2,python3
# Since some sub-folders depend on other sub-folders to be installed before
......@@ -52,7 +53,9 @@ override_dh_auto_install:
chrpath -d debian/tmp/usr/bin/nf2ff
chrpath -d debian/tmp/usr/bin/openEMS
cd CSXCAD/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) PYBUILD_VERSIONS="$(PYTHON2VERSIONS)" pybuild --build && PYBUILD_VERSIONS="$(PYTHON2VERSIONS)" pybuild --install
cd CSXCAD/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) PYBUILD_VERSIONS="$(PYTHON3VERSIONS)" pybuild --build && PYBUILD_VERSIONS="$(PYTHON3VERSIONS)" pybuild --install
cd openEMS/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) PYBUILD_VERSIONS="$(PYTHON2VERSIONS)" pybuild --build && PYBUILD_VERSIONS="$(PYTHON2VERSIONS)" pybuild --install
cd openEMS/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) PYBUILD_VERSIONS="$(PYTHON3VERSIONS)" pybuild --build && PYBUILD_VERSIONS="$(PYTHON3VERSIONS)" pybuild --install
override_dh_auto_clean:
dh_auto_clean
......@@ -63,6 +66,8 @@ override_dh_auto_clean:
$(RM) debian/man/*.1
cd CSXCAD/python && PYBUILD_VERSIONS="$(PYTHON2VERSIONS)" pybuild --clean
cd openEMS/python && PYBUILD_VERSIONS="$(PYTHON2VERSIONS)" pybuild --clean
cd CSXCAD/python && PYBUILD_VERSIONS="$(PYTHON3VERSIONS)" pybuild --clean
cd openEMS/python && PYBUILD_VERSIONS="$(PYTHON3VERSIONS)" pybuild --clean
$(RM) -r CSXCAD/python/debian
$(RM) -r openEMS/python/debian
$(RM) CSXCAD/python/CSXCAD/*.cpp
......
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