[Git][debian-gis-team/python-geotiepoints][master] Force cythonization

Antonio Valentino gitlab at salsa.debian.org
Wed Oct 14 19:29:25 BST 2020



Antonio Valentino pushed to branch master at Debian GIS Project / python-geotiepoints


Commits:
1ccebcb7 by Antonio Valentino at 2020-10-14T18:24:12+00:00
Force cythonization

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-geotiepoints (1.2.0-3) UNRELEASED; urgency=medium
+
+  * Force cython to re-generate geotiepoints/multilinear_cython.c
+    (Closes: #972024).
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Wed, 14 Oct 2020 17:46:11 +0000
+
 python-geotiepoints (1.2.0-2) unstable; urgency=medium
 
   * Add missing dependencies to debian/tests/control (Closes: 962805).


=====================================
debian/rules
=====================================
@@ -3,20 +3,29 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-
+export USE_CYTHON=TRUE
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
-
 export PYBUILD_NAME=geotiepoints
 
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild
 
+override_dh_auto_configure:
+	if [ -f geotiepoints/multilinear_cython.c ] && [ ! -f geotiepoints/multilinear_cython.c.orig ]; then \
+	    mv geotiepoints/multilinear_cython.c geotiepoints/multilinear_cython.c.orig; \
+	fi
+	$(RM) geotiepoints/multilinear_cython.c
+	dh_auto_configure
+
 override_dh_auto_clean:
 	dh_auto_clean
-
 	$(RM) geotiepoints/multilinear*.so
 	$(RM) -r python_geotiepoints.egg-info
+	if [ -f geotiepoints/multilinear_cython.c.orig ]; then \
+	    $(RM) geotiepoints/multilinear_cython.c; \
+	    mv geotiepoints/multilinear_cython.c.orig geotiepoints/multilinear_cython.c; \
+	fi
 
 override_dh_python3:
 	dh_python3



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geotiepoints/-/commit/1ccebcb708dc05eeb462fc05ed37a33e3b8382b0

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-geotiepoints/-/commit/1ccebcb708dc05eeb462fc05ed37a33e3b8382b0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20201014/f2d84f6a/attachment-0001.html>


More information about the Pkg-grass-devel mailing list