From 50f995ff05b881fce7c7d8370576efa91897ee96 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sun, 12 Feb 2012 15:59:44 +0000 Subject: [PATCH 1/1] Import nipy_0.1.999-2.debian.tar.gz [dgit import tarball nipy 0.1.999-2 nipy_0.1.999-2.debian.tar.gz] --- changelog | 158 ++++++++++++++++++++++++++++++ compat | 1 + control | 82 ++++++++++++++++ copyright | 105 ++++++++++++++++++++ docs | 1 + gbp.conf | 5 + patches/jaunty-dsc-patch-nodbg | 1 + patches/karmic-dsc-patch-nodbg | 1 + patches/lenny-dsc-patch-nodbg | 37 +++++++ patches/lucid-dsc-patch-nodbg | 1 + patches/lucid-dsc-patch-nodoc | 50 ++++++++++ patches/series | 0 pycompat | 1 + python-nipy-doc.docs | 1 + python-nipy-doc.examples | 1 + python-nipy-doc.links | 1 + python-nipy-doc.lintian-overrides | 4 + pyversions | 1 + rules | 88 +++++++++++++++++ source/format | 1 + source/options | 1 + 21 files changed, 541 insertions(+) create mode 100644 changelog create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 docs create mode 100644 gbp.conf create mode 120000 patches/jaunty-dsc-patch-nodbg create mode 120000 patches/karmic-dsc-patch-nodbg create mode 100644 patches/lenny-dsc-patch-nodbg create mode 120000 patches/lucid-dsc-patch-nodbg create mode 100644 patches/lucid-dsc-patch-nodoc create mode 100644 patches/series create mode 100644 pycompat create mode 100644 python-nipy-doc.docs create mode 100644 python-nipy-doc.examples create mode 100644 python-nipy-doc.links create mode 100644 python-nipy-doc.lintian-overrides create mode 100644 pyversions create mode 100755 rules create mode 100644 source/format create mode 100644 source/options diff --git a/changelog b/changelog new file mode 100644 index 0000000..0076225 --- /dev/null +++ b/changelog @@ -0,0 +1,158 @@ +nipy (0.1.999-2) unstable; urgency=low + + * Recommend sympy (thanks Chris Filo Gorgolewski for the report) + * Respect PYTHONPATH while running tests + + -- Yaroslav Halchenko Sun, 12 Feb 2012 10:59:44 -0500 + +nipy (0.1.999-1) unstable; urgency=low + + * Alpha release in preparation for upcoming 0.2.0 release (Closes: #581394) + * No changes within upstream codebase (Closes: #643225) + * Do not unittest if nocheck is provided (Closes: #649620) + * Boosted policy compliance to 3.9.2 -- no changes + * Patch lucid-dsc-patch-nodoc to avoid trying to build -doc on lucid + due to the failure to install needed build-depends + + -- Yaroslav Halchenko Sun, 27 Nov 2011 22:06:21 -0500 + +nipy (0.1.2+201100720-2) unstable; urgency=low + + * Merged commits from upstream contributed by Matthew Brett to fix failing + unittests on big-endians. Current upstream point: + upstream/0.1.2+20110404-74-g698b432 + + -- Yaroslav Halchenko Sat, 23 Jul 2011 22:34:15 -0400 + +nipy (0.1.2+201100720-1) unstable; urgency=low + + * Fresh upstream snapshot: 2c11ae604762105a4adaa46c57e95dc1998485eb + - might address FTBFS due to tests on some architectures + + -- Yaroslav Halchenko Wed, 20 Jul 2011 10:01:30 -0400 + +nipy (0.1.2+20110404-1) unstable; urgency=low + + * Fresh upstream snapshot: c213cc2421686b5485e43db54ec2ac8a5fa06ea6 + - Relies on external nibabel module instead of internal outdated + copy. Should close 611316, which would be done upon successfull + build across the architectures. + - Does not use PyNIfTI any longer, so it is removed from *Depends + now + - Absorbed all Debian patches + * No cdbs was used since nearly a year ago -- removed it from Build-Depends + + -- Yaroslav Halchenko Mon, 04 Apr 2011 09:54:56 -0400 + +nipy (0.1.2+20110114-1) unstable; urgency=low + + * Fresh upstream snapshot: 136acf09beff315226e4cfa07066b1f5998e9d5e + * Carries numpydoc compatible with sphinx >= 1.0 (Closes: #588625) + * Do not compress objects.inv necessary for intersphinx (Closes: #608763) + * Added few patches (submitted upstream) to fix building of documentation + - 0001-make-few-classes-new-style-derive-from-object.patch + - 0002-make-classes-without-new-style-derive-from-object.patch + - 0003-import-similarity_measures-as-_sms-in-histogram_regi.patch + * Adjusted debian/rules: + - run unittests now against default python version + on the installed version of nipy. Skipped unittests due to known + failures or non-labile tests subject to random data: + test_slice_from_3d, test_screen, test_lips3_disjoint, test_mu2tet, + test_input_effects, test_same_basis, test_fullrank, test_ec, + test_apply_affine, test_lips1_disjoint, test_dtrsm + - assure Agg matplotlib backend during documentation build and unittests + * Added *-dsc-patch-nodbg backport-dsc patches to avoid building of -dbg + package since python-scipy-dbg is missing on lenny or ubuntu releases + prior maverick (not sufficient anyways due to other missing versioned + build-dependencies atm -- matplotlib, sympy) + * Versioned Build-Dependency sympy >= 0.6.6 + + -- Yaroslav Halchenko Fri, 14 Jan 2011 19:33:28 -0500 + +nipy (0.1.2+20101206-1) UNRELEASED; urgency=low + + * Fresh upstream snapshot: a0fd6c6c62d91315cdeb8bc81e19f355b12f8013 + Never officially released, thus changelogs moved upstairs + + -- Yaroslav Halchenko Thu, 13 Jan 2011 21:02:35 -0500 + +nipy (0.1.2+20100526-2) unstable; urgency=medium + + * Strict version dependency on NumPy to assure ABI compatibility in the + future (Closes: #590737). Thanks Kumar Appaiah for the reminder. + * debian/copyright: + - Added missing copyrights/licenses + - Adjusted formatting to match DEP5 rev 135 + - Citing BSD-3 license verbatim to be compliant with 3.9.0 + * Boosted policy compliance to 3.9.1 (BSD-3 license verbatim) + * Medium urgency for faster propagation of RC bug fix into squeeze + * Added gbp.conf file for easy building using g-b-p + + -- Yaroslav Halchenko Fri, 06 Aug 2010 11:17:05 -0400 + +nipy (0.1.2+20100526-1) unstable; urgency=low + + * Fresh upstream snapshot -- needed a new orig.tar.gz since some + files were moved/removed + * Switching to dh from cdbs: + - Assure no documentation is built during binary-arch builds + (closes: #581204, #581783) + - Build for all supported Python versions + - Expanded Build-Depends with all necessary -dbg packages + (e.g. cython-dbg, python-all-dbg) + - Added dvipng into Build-Depends for avoiding problems during + documentation build + + -- Yaroslav Halchenko Tue, 11 May 2010 21:17:20 -0400 + +nipy (0.1.2+20100505-1) unstable; urgency=low + + * Fresh upstream snapshot (Closes: #577898). Switching from bzr rev to + git dated versioning for nipy for now + * Debian packaging moved to be on top of a newly created + git repository for nipy upstream + * Adhering to a new deb source format 3.0 (quilt) + * Policy compliance to 3.8.4 (no changes due) + * Switching over to NeuroDebian team + * -doc: no pdf's for Documentation (removed texlive, + texlive-latex-extra from Build-Depends) (Closes: #567757) + * Confirming (and refactoring) NMUs from Kumar (THANKS!): + + As promised, closing the issue with absent i386 builds (Closes: #562246) + + Adding both PATH= and MPLCONFIGDIR= for building docs + + Addressed fortran binding issue with patchless solution: + unexport of LDFLAGS in debian/rules which brings -shared back + to game (see #535699 for more information) + + -- Yaroslav Halchenko Tue, 04 May 2010 23:01:12 -0400 + +nipy (0.1.2+1741-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Use $(CURDIR) instead of $(PWD) in debian/rules. (Closes: #535699) + + -- Kumar Appaiah Sun, 31 Jan 2010 08:40:11 -0600 + +nipy (0.1.2+1741-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix "FTBFS: Tries to write to $HOME during build" using Peter Green's + patch. + * In addition, make package buildable by hacking the build system to use + -shared and -lpython for all gfortran using modules. (Closes: + #535699) + + -- Kumar Appaiah Sun, 31 Jan 2010 00:40:11 -0600 + +nipy (0.1.2+1741-2) unstable; urgency=low + + * Adjusted long descriptions to follow the guidelines and to become + complete sentences with redundant prefixes (closes: #532860) + + -- Yaroslav Halchenko Fri, 12 Jun 2009 16:56:54 -0400 + +nipy (0.1.2+1741-1) unstable; urgency=low + + * Initial release (Closes: #522353) + + -- Experimental Psychology Maintainers Tue, 14 Apr 2009 18:21:44 -0400 + diff --git a/compat b/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +7 diff --git a/control b/control new file mode 100644 index 0000000..e2f1df5 --- /dev/null +++ b/control @@ -0,0 +1,82 @@ +Source: nipy +Section: python +Priority: extra +Maintainer: NeuroDebian Team +Uploaders: Yaroslav Halchenko , Michael Hanke +Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.5), python-support (>= 0.6), + python-scipy (>= 0.5), python-numpy (>= 1.2), python-matplotlib (>= 0.98.3), + python-sphinx (>= 0.6), cython, + python-nibabel, python-nose, python-sympy (>= 0.6.6), + liblapack-dev, + python-all-dbg, python-numpy-dbg, python-scipy-dbg, cython-dbg, + graphviz, dvipng +Standards-Version: 3.9.2 +Homepage: http://neuroimaging.scipy.org +Vcs-Browser: http://git.debian.org/?p=pkg-exppsy/nipy.git +Vcs-Git: git://git.debian.org/git/pkg-exppsy/nipy.git + + +Package: python-nipy +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, + python-scipy, python-numpy (>=1.2), + python-nibabel, + python-nipy-lib (>= ${source:Version}), +Recommends: python-matplotlib, + mayavi2, + python-sympy, +Suggests: python-mvpa +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Analysis of structural and functional neuroimaging data + NiPy is a Python-based framework for the analysis of structural and + functional neuroimaging data. It provides functionality for + - General linear model (GLM) statistical analysis + - Combined slice time correction and motion correction + - General image registration routines with flexible cost functions, + optimizers and re-sampling schemes + - Image segmentation + - Basic visualization of results in 2D and 3D + - Basic time series diagnostics + - Clustering and activation pattern analysis across subjects + - Reproducibility analysis for group studies + + +Package: python-nipy-lib +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Analysis of structural and functional neuroimaging data + NiPy is a Python-based framework for the analysis of structural and + functional neuroimaging data. + . + This package provides architecture-dependent builds of the libraries. + + +Package: python-nipy-lib-dbg +Architecture: any +Section: debug +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, + python-nipy-lib (= ${binary:Version}) +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Description: Analysis of structural and functional neuroimaging data + NiPy is a Python-based framework for the analysis of structural and + functional neuroimaging data. + . + This package provides debugging symbols for architecture-dependent + builds of the libraries. + + +Package: python-nipy-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, libjs-jquery +Recommends: python-nipy +Description: documentation and examples for NiPy + This package contains NiPy documentation in various formats (HTML, + TXT) including + * User manual + * Developer guidelines + * API documentation diff --git a/copyright b/copyright new file mode 100644 index 0000000..c30f0bf --- /dev/null +++ b/copyright @@ -0,0 +1,105 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: NiPy +Maintainer: Matthew Brett +Source: http://github.com/nipy/nipy + + +Files: * +Copyright: 2006-2010, NIPY Developers +License: BSD-3 + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of the NIPY Developers nor the names of any + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: nipy/io/imageformats/* +Copyright: 2006-2010, Michael Hanke + 2009-2010, Matthew Brett +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +Files: nipy/io/imageformats/testing/lightunit.py +Copyright: 2009, The IPython Development Team +License: BSD-3 + +Files: nipy/neurospin/* +Copyright: 2003-2010, CEA-INRIA-INSERM +License: BSD-3 + +Files: examples/neurospin/neurospy/configobj.py +Copyright: 2005-2006, Michael Foord + 2005-2006, Nicola Larosa +License: BSD-3 + +Files: libfffpy/randomkit/distributions.c +Copyright: 2005, Robert Kern +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: libfffpy/randomkit/randomkit.c +Copyright: 2003-2005, Jean-Sebastien Roy + 1997-2002, Makoto Matsumoto and Takuji Nishimura +License: BSD-3 + +Files: nipy/fixes/scipy/stats/models +Copyright: 2006, Jonathan E. Taylor +License: BSD-3 + +Files: debian/* +Copyright: 2009-2010, Yaroslav Halchenko + 2009-2010, Michael Hanke +License: BSD-3 diff --git a/docs b/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/docs @@ -0,0 +1 @@ +README diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..115e7bc --- /dev/null +++ b/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian +upstream-tag = upstream/%(version)s +debian-tag = debian/%(version)s diff --git a/patches/jaunty-dsc-patch-nodbg b/patches/jaunty-dsc-patch-nodbg new file mode 120000 index 0000000..c3570cc --- /dev/null +++ b/patches/jaunty-dsc-patch-nodbg @@ -0,0 +1 @@ +lenny-dsc-patch-nodbg \ No newline at end of file diff --git a/patches/karmic-dsc-patch-nodbg b/patches/karmic-dsc-patch-nodbg new file mode 120000 index 0000000..c3570cc --- /dev/null +++ b/patches/karmic-dsc-patch-nodbg @@ -0,0 +1 @@ +lenny-dsc-patch-nodbg \ No newline at end of file diff --git a/patches/lenny-dsc-patch-nodbg b/patches/lenny-dsc-patch-nodbg new file mode 100644 index 0000000..35ab882 --- /dev/null +++ b/patches/lenny-dsc-patch-nodbg @@ -0,0 +1,37 @@ +From: Yaroslav Halchenko +Subject: Disable building of -dbg packages since distribution lacks scipy-dbg + +Vendor: Debian + +--- a/debian/control ++++ b/debian/control +@@ -8,7 +8,6 @@ + python-sphinx (>= 0.6), cython, + python-nibabel, python-nose, python-sympy (>= 0.6.6), + liblapack-dev, +- python-all-dbg, python-numpy-dbg, python-scipy-dbg, cython-dbg, + graphviz, dvipng + Standards-Version: 3.9.2 + Homepage: http://neuroimaging.scipy.org +@@ -52,21 +51,6 @@ + This package provides architecture-dependent builds of the libraries. + + +-Package: python-nipy-lib-dbg +-Architecture: any +-Section: debug +-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, +- python-nipy-lib (= ${binary:Version}) +-Provides: ${python:Provides} +-XB-Python-Version: ${python:Versions} +-Description: Analysis of structural and functional neuroimaging data +- NiPy is a Python-based framework for the analysis of structural and +- functional neuroimaging data. +- . +- This package provides debugging symbols for architecture-dependent +- builds of the libraries. +- +- + Package: python-nipy-doc + Architecture: all + Section: doc diff --git a/patches/lucid-dsc-patch-nodbg b/patches/lucid-dsc-patch-nodbg new file mode 120000 index 0000000..c3570cc --- /dev/null +++ b/patches/lucid-dsc-patch-nodbg @@ -0,0 +1 @@ +lenny-dsc-patch-nodbg \ No newline at end of file diff --git a/patches/lucid-dsc-patch-nodoc b/patches/lucid-dsc-patch-nodoc new file mode 100644 index 0000000..40aae28 --- /dev/null +++ b/patches/lucid-dsc-patch-nodoc @@ -0,0 +1,50 @@ +Subject: lucid fails to install necessary components for doc building in clean environment + +so dropping -doc package for lucid + +--- a/debian/control ++++ b/debian/control +@@ -5,10 +5,9 @@ + Uploaders: Yaroslav Halchenko , Michael Hanke + Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.5), python-support (>= 0.6), + python-scipy (>= 0.5), python-numpy (>= 1.2), python-matplotlib (>= 0.98.3), +- python-sphinx (>= 0.6), cython, ++ cython, + python-nibabel, python-nose, python-sympy (>= 0.6.6), + liblapack-dev, +- graphviz, dvipng + Standards-Version: 3.9.2 + Homepage: http://neuroimaging.scipy.org + Vcs-Browser: http://git.debian.org/?p=pkg-exppsy/nipy.git +@@ -50,15 +49,3 @@ + . + This package provides architecture-dependent builds of the libraries. + +- +-Package: python-nipy-doc +-Architecture: all +-Section: doc +-Depends: ${misc:Depends}, libjs-jquery +-Recommends: python-nipy +-Description: documentation and examples for NiPy +- This package contains NiPy documentation in various formats (HTML, +- TXT) including +- * User manual +- * Developer guidelines +- * API documentation +--- a/debian/rules ++++ b/debian/rules +@@ -78,11 +78,11 @@ + override_dh_clean: + : # I: Custom cleaning + rm -rf build doc-stamp nipy/neurospin/__config__.py +- $(MAKE) -C doc clean ++ #$(MAKE) -C doc clean + dh_clean + + + # We build documentation only for -indep +-binary-indep: doc-stamp ++binary-indep: + + binary: binary-arch binary-indep diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..e69de29 diff --git a/pycompat b/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/pycompat @@ -0,0 +1 @@ +2 diff --git a/python-nipy-doc.docs b/python-nipy-doc.docs new file mode 100644 index 0000000..8137b04 --- /dev/null +++ b/python-nipy-doc.docs @@ -0,0 +1 @@ +doc/build/html diff --git a/python-nipy-doc.examples b/python-nipy-doc.examples new file mode 100644 index 0000000..2c8fad4 --- /dev/null +++ b/python-nipy-doc.examples @@ -0,0 +1 @@ +examples/*.py diff --git a/python-nipy-doc.links b/python-nipy-doc.links new file mode 100644 index 0000000..4d75e6c --- /dev/null +++ b/python-nipy-doc.links @@ -0,0 +1 @@ +usr/share/javascript/jquery/jquery.js usr/share/doc/python-nipy-doc/html/_static/jquery.js diff --git a/python-nipy-doc.lintian-overrides b/python-nipy-doc.lintian-overrides new file mode 100644 index 0000000..636341d --- /dev/null +++ b/python-nipy-doc.lintian-overrides @@ -0,0 +1,4 @@ +# Explicit license file is desired for the completeness of the documentation +# + +python-nipy-doc binary: extra-license-file usr/share/doc/python-nipy-doc/html/_sources/license.txt diff --git a/pyversions b/pyversions new file mode 100644 index 0000000..b3dc41e --- /dev/null +++ b/pyversions @@ -0,0 +1 @@ +2.5- diff --git a/rules b/rules new file mode 100755 index 0000000..908535e --- /dev/null +++ b/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- + +export DH_VERBOSE=1 + +PYVER = $(shell pyversions -vd) + +# To fix distutils fragile nature: when seing LDFLAGS=, which is set +# by dpkg-buildpackage it stops providing -shared flag, so for the +# minimalistic fix (alternative to NMU-ed #535699 with explicit +# -shared) we just unexport LDFLAGS +unexport LDFLAGS + +# Mega rule +%: + dh --buildsystem=python_distutils $@ + +override_dh_auto_test: + : # Do not test just after build, lets install and then test + +override_dh_auto_build: + dh_auto_build + echo "backend : Agg" >| build/matplotlibrc + +# +# Documentation +# +doc-stamp: + : # I: Generate documentation + export PYTHONPATH=$$PWD/`/bin/ls -d build/lib.*$(PYVER)` \ + MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \ + cd doc; $(MAKE) html + : # I: Use jquery from Debian package + -rm doc/build/html/_static/jquery.js + touch $@ + + +#override_dh_auto_install: +# dh_auto_install + +test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + : # I: Unittest only the default python version for now against "installed" materials + cd debian; \ + PYTHONPATH=$$(/bin/ls -d $(CURDIR)/debian/tmp/usr/lib/python$(PYVER)/*-packages):$$PYTHONPATH \ + MPLCONFIGDIR=$(CURDIR)/build \ + ../tools/nipnost nipy +else + : # Skip unittests due to nocheck +endif + +override_dh_install: test + : # I: Move libraries into the python-nipy-lib and -lib-dbg packages + find debian/tmp/ -iname *.so | \ + while read so; do \ + d=$$(dirname $$so); \ + if [ $${so%_d.so} = $${so} ]; then suf=""; else suf="-dbg"; fi; \ + d=$$(echo $$d | sed -e "s,debian/tmp/,debian/python-nipy-lib$$suf/,g"); \ + mkdir -p $$d; echo "Moving $$so under $$d"; mv $$so $$d; \ + done + : # I: Move leftovers into python-nipy + mkdir -p debian/python-nipy + mv debian/tmp/* debian/python-nipy/ + : # I: Fix up interpreter which might be -dbg one + sed -i -e 's,/usr/bin/python-dbg,/usr/bin/python,g' debian/python-nipy/usr/bin/* + : # I: Assure versioned dependency on NumPy + if [ -x /usr/bin/dh_numpy ]; then dh_numpy; fi + + dh_install + + +## immediately useable documentation and exemplar scripts/data +override_dh_compress: + : # I: Avoiding compression of what should not be compressed + dh_compress -X.py -X.html -X.pdf -X.css -X.jpg -X.txt -X.js -X.json -X.rtc -Xobjects.inv + + +override_dh_clean: + : # I: Custom cleaning + rm -rf build doc-stamp nipy/neurospin/__config__.py + $(MAKE) -C doc clean + dh_clean + + +# We build documentation only for -indep +binary-indep: doc-stamp + +binary: binary-arch binary-indep diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/source/options b/source/options new file mode 100644 index 0000000..6a8bb0d --- /dev/null +++ b/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "(^|/)nipy/COMMIT_INFO.txt$" -- 2.30.2