mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 15:55:16 +08:00
6c9cfc53da
* commit '8a06a2277366d01c5e7e25d3ded0f04ba9aa0b85': (1124 commits) Development guidelines moved. Replace mentions of old package name. New upstream release. DOC: fix indent PEP8 PEP8: fix indentation DOC: add missing import DOC: no import numpy in doc MAINT: matplotlib is in requierements.txt MAINT: unused import PEP8: comparison Fix deprecated function name in example Improve example of warp function to show all available options Add support for matrix as inverse_map Add note about internal usage of transformation matrix Only clip for ndimage.map_coordinates case Misc doc string fixes Remove call to deprecated is_gray function Fix dtype bug in perimeter Raise error for non 2-D images ... Conflicts: debian/changelog debian/control
69 lines
1.9 KiB
Makefile
Executable File
69 lines
1.9 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- mode: makefile; coding: utf-8 -*-
|
|
|
|
PACKAGE2_NAME = python-skimage
|
|
PACKAGE3_NAME = python3-skimage
|
|
PKG_TMP = $(CURDIR)/debian/tmp
|
|
|
|
PYVERS = $(shell pyversions -vr)
|
|
PYVER = $(shell pyversions -vd)
|
|
PY3VERS = $(shell py3versions -vr)
|
|
|
|
export MPLCONFIGDIR=$(CURDIR)/build
|
|
export HOME=$(CURDIR)/build
|
|
|
|
# Mega rule
|
|
%:
|
|
dh $@ --with python2,python3,sphinxdoc --buildsystem python_distutils
|
|
|
|
override_dh_clean:
|
|
rm -f install-stamp
|
|
ifeq (,$(filter noclean,$(DEB_BUILD_OPTIONS)))
|
|
rm -rf build doc/build doc/auto_examples *-stamp skimage.egg-info
|
|
dh_clean
|
|
endif
|
|
|
|
# Assure Agg backend for matplotlib to avoid any possible complication
|
|
override_dh_auto_configure:
|
|
mkdir -p $(MPLCONFIGDIR)
|
|
echo "backend : Agg" >| $(MPLCONFIGDIR)/matplotlibrc
|
|
dh_auto_configure
|
|
|
|
# Build docs during install
|
|
override_dh_auto_install: ${PYVERS:%=python-install%} ${PY3VERS:%=python-install%}
|
|
: # Build Documentation
|
|
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
|
|
export PYTHONPATH=$(PKG_TMP)/usr/lib/python$(PYVER)/dist-packages; \
|
|
cd doc; test -d build/html || $(MAKE) html
|
|
endif
|
|
touch install-stamp
|
|
|
|
# Per Python version logic -- install, test, move .so into -lib
|
|
python-install%:
|
|
python$* setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
|
|
|
|
python-test%: install-stamp
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
pkgbuild=yes debian/tests/python$*
|
|
else
|
|
: # Skip unittests due to nocheck
|
|
endif
|
|
|
|
## remove .so libraries from main package, and call dh_numpy*
|
|
_dh_python%: python-test%
|
|
find debian/$(PACKAGE$*_NAME)/usr/lib -name "*.so" -delete;
|
|
|
|
dh_numpy$(*:2=) -p$(PACKAGE$*_NAME)-lib
|
|
dh_python$*
|
|
|
|
override_dh_python2: _dh_python2
|
|
override_dh_python3: _dh_python3
|
|
|
|
## immediately useable documentation and exemplar scripts/data
|
|
override_dh_compress:
|
|
dh_compress -X.py -X.html -X.pdf -X.css -X.jpg -X.txt -X.js -X.json -X.rtc
|
|
|
|
override_dh_installdocs:
|
|
dh_installdocs -A CONTRIBUTORS.txt README.md CONTRIBUTING.txt TASKS.txt
|
|
|