[netcdf4-python] 06/13: Add patch to not compile netCDF4.pyx on clean, prevents unexpected upstream changes dpkg-source error.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Fri Jun 5 00:01:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository netcdf4-python.
commit 02685bb38c8de78890df610a341265b67f9cd42c
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jun 5 00:28:20 2015 +0200
Add patch to not compile netCDF4.pyx on clean, prevents unexpected upstream changes dpkg-source error.
---
debian/changelog | 2 ++
debian/patches/cython-clean.patch | 14 ++++++++++++++
debian/patches/series | 1 +
3 files changed, 17 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 3ac4606..c1ebeb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ netcdf4-python (1.1.8-1) UNRELEASED; urgency=medium
* New upstream release.
* Add myself to Uploaders.
* Drop nc4tonc3-indentation.patch, applied upstream.
+ * Add patch to not compile netCDF4.pyx on clean,
+ prevents unexpected upstream changes dpkg-source error.
-- Bas Couwenberg <sebastic at debian.org> Thu, 04 Jun 2015 23:12:36 +0200
diff --git a/debian/patches/cython-clean.patch b/debian/patches/cython-clean.patch
new file mode 100644
index 0000000..d28988b
--- /dev/null
+++ b/debian/patches/cython-clean.patch
@@ -0,0 +1,14 @@
+Description: Don't compile netCDF4.pyx on clean.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/setup.py
++++ b/setup.py
+@@ -353,7 +353,7 @@ else:
+ cmdclass = {}
+ netcdf4_src_root = osp.join('netCDF4', '_netCDF4')
+ netcdf4_src_c = netcdf4_src_root + '.c'
+-if has_cython and 'sdist' not in sys.argv[1:]:
++if has_cython and 'sdist' not in sys.argv[1:] and 'clean' not in sys.argv[1:]:
+ sys.stdout.write('using Cython to compile netCDF4.pyx...\n')
+ extensions = [Extension("netCDF4._netCDF4",
+ [netcdf4_src_root + '.pyx'],
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7ae9f23
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+cython-clean.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/netcdf4-python.git
More information about the Pkg-grass-devel
mailing list