Commit 95fbf8e6 authored by Frederic HAN's avatar Frederic HAN

update debian build

parent ba9afe8f
......@@ -6,7 +6,7 @@ Build-Depends: python-all-dev, python, debhelper (>= 7), python3-all-dev, python
XB-Python-Version: ${python:Versions}
X-Python3-Version: >=3.0
Standards-Version: 3.8.4
Homepage: http://www.math.jussieu.fr/~han/xcas/giacpy
Homepage: http://webusers.imj-prg.fr/~frederic.han/xcas/giacpy
Package: python-giacpy
Architecture: any
......
......@@ -10,18 +10,21 @@ PY3VERS=$(shell py3versions -i)
override_dh_auto_clean:
dh_auto_clean
cd qcas;make clean; rm -f libqcas.a; cd ..
(cd qcas && make clean && rm -f libqcas.a && cd ..)
rm -rf build/
override_dh_auto_build:
cd qcas;qmake libqcas.pro;make;cd ..
(cd qcas && qmake libqcas.pro && make && cd ..)
for pyvers in $(PYVERS) $(PY3VERS); do \
$$pyvers setup.py build --enable-qcas; \
done
run-install%:
$* setup.py install --install-layout=deb --root $(CURDIR)/$(call py_pkgname,debian/python-giacpy,$*)
run-installpython2%:
python2$* setup.py install --install-layout=deb --root $(CURDIR)/$(call py_pkgname,debian/python-giacpy,$*)
dh_movefiles --sourcedir=debian/python-giacpy
run-installpython3%:
python3$* setup.py install --install-layout=deb --root $(CURDIR)/$(call py_pkgname,debian/python3-giacpy,$*)
dh_movefiles --sourcedir=debian/python3-giacpy
override_dh_auto_install: $(PYVERS:%=run-install%) $(PY3VERS:%=run-install%)
......@@ -43,5 +46,11 @@ endif
override_dh_auto_test: $(PYVERS:%=run-test%) $(PY3VERS:%=run-test%)
#%:
# dh --with python2,python3 $@ --buildsystem=python_distutils
PYBUILD_NAME=giacpy
%:
dh --with python2,python3 $@ --buildsystem=python_distutils
dh --with python2,python3 $@ --buildsystem=pybuild
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