[fiona] 05/05: Add patch to not copy GDAL API C files in clean target.

Bas Couwenberg sebastic at debian.org
Tue Jun 14 22:35:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository fiona.

commit b784b6e3dfba85d97437f34d6bf94651af01b143
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Jun 15 00:22:47 2016 +0200

    Add patch to not copy GDAL API C files in clean target.
---
 debian/changelog                 |  1 +
 debian/patches/clean-setup.patch | 14 ++++++++++++++
 debian/patches/series            |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 117f3ee..8237e3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ fiona (1.7.0-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release.
   * Ignore test failures on ppc64 too.
+  * Add patch to not copy GDAL API C files in clean target.
 
  -- Bas Couwenberg <sebastic at debian.org>  Wed, 15 Jun 2016 00:05:30 +0200
 
diff --git a/debian/patches/clean-setup.patch b/debian/patches/clean-setup.patch
new file mode 100644
index 0000000..2d34e07
--- /dev/null
+++ b/debian/patches/clean-setup.patch
@@ -0,0 +1,14 @@
+Description: Don't copy GDAL API C files in clean target.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/setup.py
++++ b/setup.py
+@@ -194,7 +194,7 @@ if source_is_repo and "clean" not in sys
+         Extension('fiona._err', ['fiona/_err.pyx'], **ext_options),
+         Extension('fiona.ogrext', ['fiona/ogrext.pyx'], **ext_options)])
+ # If there's no manifest template, as in an sdist, we just specify .c files.
+-else:
++elif "clean" not in sys.argv:
+     copy_gdalapi_c(gdalversion)
+     ext_modules = [
+         Extension('fiona._transform', ['fiona/_transform.cpp'], **ext_options),
diff --git a/debian/patches/series b/debian/patches/series
index 780dd7b..56dbaa8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Rename-fio-command-to-fiona-to-avoid-name-clash.patch
 0002-Remove-outside-reference-possible-privacy-breach.patch
 0006-Remove-unknown-distribution-options.patch
+clean-setup.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/fiona.git



More information about the Pkg-grass-devel mailing list