Commit bd60ce54 authored by Ruben Undheim's avatar Ruben Undheim

Use pybuild instead

parent 9e7ea87e
......@@ -17,6 +17,7 @@ Build-Depends: debhelper (>= 11),
dh-octave | octave-pkg-dev,
cython,
chrpath,
dh-python,
txt2man
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/science-team/openems
......
usr/lib/python2.7
openEMS/python/debian/tmp/usr/lib usr/
CSXCAD/python/debian/tmp/usr/lib usr/
......@@ -18,10 +18,12 @@ OCTAVE_HOSTTYPE = $(shell octave-config -p CANONICAL_HOST_TYPE)
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)
export CXXFLAGS := $(CXXFLAGS) -DSSE_CORRECT_DENORMALS=0
%:
dh $@
dh $@ --with python2
# Since some sub-folders depend on other sub-folders to be installed before
......@@ -49,8 +51,8 @@ override_dh_auto_install:
chrpath -d debian/tmp/usr/bin/AppCSXCAD
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) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr --install-layout=deb
cd openEMS/python && CPPFLAGS=-I../../debian/tmp/usr/include LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr --install-layout=deb
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 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
override_dh_auto_clean:
dh_auto_clean
......
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