[netcdf4-python] 08/10: Add patch to not regenerated constants.pyx on clean.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Fri Mar 20 15:59:48 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 a327d96f7b66f62e46f6319b966c79ab6a174d11
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Mar 20 16:23:03 2015 +0100
Add patch to not regenerated constants.pyx on clean.
---
debian/patches/cython-clean.patch | 14 ++++++++++++++
debian/patches/series | 1 +
2 files changed, 15 insertions(+)
diff --git a/debian/patches/cython-clean.patch b/debian/patches/cython-clean.patch
new file mode 100644
index 0000000..47effa5
--- /dev/null
+++ b/debian/patches/cython-clean.patch
@@ -0,0 +1,14 @@
+Description: Don't regenerate constants.pyx on clean
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/setup.py
++++ b/setup.py
+@@ -329,7 +329,7 @@ if netcdf_lib_version is None:
+ else:
+ sys.stdout.write('using netcdf library version %s\n' % netcdf_lib_version)
+
+-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')
+ # recompile netCDF4.pyx
+ extensions = [Extension("netCDF4",["netCDF4.pyx"],libraries=libs,library_dirs=lib_dirs,include_dirs=inc_dirs,runtime_library_dirs=lib_dirs),
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