Commit b64012d7 authored by Ruben Undheim's avatar Ruben Undheim

Rules for building python modules

parent 6163246b
......@@ -49,7 +49,22 @@ 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
mkdir -p CSXCAD/python/include/openEMS && cp openEMS/openems.h CSXCAD/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff.h CSXCAD/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff_calc.h CSXCAD/python/include/openEMS/ && \
mkdir -p CSXCAD/python/include/CSXCAD/ && \
find CSXCAD/src/ -name "*.h" -exec cp {} CSXCAD/python/include/CSXCAD/ \;
#mkdir -p CSXCAD/python/include/openEMS/ && \
#find openEMS/src/ -name "*.h" -exec cp {} CSXCAD/python/include/openEMS/ \;
cd CSXCAD/python && CPPFLAGS=-Iinclude LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr
mkdir -p openEMS/python/include/openEMS && cp openEMS/openems.h openEMS/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff.h openEMS/python/include/openEMS/ && \
cp openEMS/nf2ff/nf2ff_calc.h openEMS/python/include/openEMS/ && \
mkdir -p openEMS/python/include/CSXCAD/ && \
find CSXCAD/src/ -name "*.h" -exec cp {} openEMS/python/include/CSXCAD/ \;
#mkdir -p openEMS/python/include/openEMS/ && \
#find openEMS/src/ -name "*.h" -exec cp {} openEMS/python/include/openEMS/ \;
cd openEMS/python && CPPFLAGS=-Iinclude LDFLAGS=-L../../debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) python2 setup.py build_ext && python2 setup.py install --prefix=../../debian/tmp/usr
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