[fiona] 02/12: Add patch to not cythonize in the clean target.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sun Feb 7 22:37:33 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 86552a509d2807b7af775adde68004b08f7089c0
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Oct 23 22:13:04 2015 +0200

    Add patch to not cythonize in the clean target.
---
 debian/changelog                      |  1 +
 debian/patches/0004-clean-setup.patch | 15 +++++++++++++++
 debian/patches/series                 |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c069b65..34d22fe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ fiona (1.6.2-2) UNRELEASED; urgency=medium
 
   * Team upload.
   * Add patch for GDAL 2.0 support.
+  * Add patch to not cythonize in the clean target.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 23 Oct 2015 21:50:46 +0200
 
diff --git a/debian/patches/0004-clean-setup.patch b/debian/patches/0004-clean-setup.patch
new file mode 100644
index 0000000..7811862
--- /dev/null
+++ b/debian/patches/0004-clean-setup.patch
@@ -0,0 +1,15 @@
+Description: Don't cythonize in clean target.
+ Just like [rasterio](https://github.com/mapbox/rasterio/blob/master/setup.py#L141)
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/setup.py
++++ b/setup.py
+@@ -131,7 +131,7 @@ ext_options = dict(
+     extra_link_args=extra_link_args)
+ 
+ # When building from a repo, Cython is required.
+-if os.path.exists("MANIFEST.in"):
++if os.path.exists("MANIFEST.in") and "clean" not in sys.argv:
+     log.info("MANIFEST.in found, presume a repo, cythonizing...")
+     if not cythonize:
+         log.critical(
diff --git a/debian/patches/series b/debian/patches/series
index b07dc3d..7234788 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
 0003-GDAL-2.0.patch
+0004-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