[python-fabio] 06/11: refresh the rules file
Frédéric-Emmanuel Picca
picca at moszumanska.debian.org
Wed Jul 27 18:20:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
picca pushed a commit to branch master
in repository python-fabio.
commit a6990c478b0b576685bc232e3aac20ff9db8fe02
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date: Wed Jul 27 18:20:56 2016 +0200
refresh the rules file
---
debian/rules | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
diff --git a/debian/rules b/debian/rules
index 5d1dadb..3bf398c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,43 +1,38 @@
#!/usr/bin/make -f
export PYBUILD_NAME=fabio
+export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_clean:
# remove the cython generated files distributed by upstream
- rm -f $(patsubst %.pyx,%.c,$(wildcard src/*.pyx))
+ rm -f $(patsubst %.pyx,%.c,$(wildcard fabio/ext/*.pyx))
rm -rf build/html
rm -rf *.egg-info
dh_clean
-override_dh_auto_build:
- dh_auto_build
- PYBUILD_SYSTEM=custom \
- PYBUILD_BUILD_ARGS="PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/source build/html" dh_auto_build # HTML generator
-
# unactive test for now
override_dh_auto_test:
# PYBUILD_SYSTEM=custom \
-# PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} {interpreter} test/test_all.py" dh_auto_test
+# PYBUILD_TEST_ARGS="PYTHONPATH={build_dir} FABIO_TESTIMAGES=testimages {interpreter} ./run_tests.py" dh_auto_test
override_dh_install:
dh_numpy
dh_numpy3
dh_install
- # move the scripts into fabio-viewer
- dh_install -p fabio-viewer debian/python-fabio/usr/bin usr/
- # remove all scripts installed by pybuild
- rm -rf debian/python-fabio/usr/bin
- rm -rf debian/python-fabio-dbg/usr/bin
- rm -rf debian/python3-fabio/usr/bin
- rm -rf debian/python3-fabio-dbg/usr/bin
+ # install scripts into fabio-viewer
+ python setup.py install_scripts -d debian/fabio-viewer/usr/bin
override_dh_installman:
dh_installman -p fabio-viewer doc/man/fabio_viewer.1
-override_dh_installdocs:
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ PYBUILD_SYSTEM=custom \
+ PYBUILD_BUILD_ARGS="PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/source build/html" dh_auto_build # HTML generator
dh_installdocs "build/html" -p python-fabio-doc
- dh_installdocs
+ dh_sphinxdoc -O--buildsystem=pybuild
+endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-fabio.git
More information about the debian-science-commits
mailing list