[Python-modules-commits] r10069 - in packages/soya/trunk/debian (3 files)

bernat at users.alioth.debian.org bernat at users.alioth.debian.org
Sat Oct 17 09:58:10 UTC 2009


    Date: Saturday, October 17, 2009 @ 09:58:09
  Author: bernat
Revision: 10069

Add a patch from Jakub to fix compilation with new pyrex. Closes:
#533922.

Added:
  packages/soya/trunk/debian/patches/pyrex-compilation-fix
Modified:
  packages/soya/trunk/debian/changelog
  packages/soya/trunk/debian/patches/series

Modified: packages/soya/trunk/debian/changelog
===================================================================
--- packages/soya/trunk/debian/changelog	2009-10-17 01:02:40 UTC (rev 10068)
+++ packages/soya/trunk/debian/changelog	2009-10-17 09:58:09 UTC (rev 10069)
@@ -4,8 +4,9 @@
     lib(freetype|ode). Closes: #521754.
   * Depends on libode-sp-dev instead of libode-dev since soya only works
     with single precision.
+  * Add a patch from Jakub to fix compilation with new pyrex. Closes: #533922.
 
- -- Vincent Bernat <bernat at debian.org>  Sun, 16 Aug 2009 15:00:29 +0200
+ -- Vincent Bernat <bernat at debian.org>  Sat, 17 Oct 2009 11:57:22 +0200
 
 soya (0.14-3) unstable; urgency=low
 

Added: packages/soya/trunk/debian/patches/pyrex-compilation-fix
===================================================================
--- packages/soya/trunk/debian/patches/pyrex-compilation-fix	                        (rev 0)
+++ packages/soya/trunk/debian/patches/pyrex-compilation-fix	2009-10-17 09:58:09 UTC (rev 10069)
@@ -0,0 +1,17 @@
+diff --git a/setup.py b/setup.py
+--- a/setup.py
++++ b/setup.py
+@@ -80,6 +80,13 @@
+ 
+ MACOSX_DEPLOYMENT_TARGET  = os.getenv('MACOSX_DEPLOYMENT_TARGET')
+ try:
++	from Pyrex.Compiler.Main import Context
++	def extract_module_name(self, path):
++		dir, filename = os.path.split(path)
++		module_name, _ = os.path.splitext(filename)
++		return module_name
++	Context.extract_module_name = extract_module_name
++	del Context
+ 	from Pyrex.Distutils import build_ext
+ 	HAVE_PYREX = 1
+ except:

Modified: packages/soya/trunk/debian/patches/series
===================================================================
--- packages/soya/trunk/debian/patches/series	2009-10-17 01:02:40 UTC (rev 10068)
+++ packages/soya/trunk/debian/patches/series	2009-10-17 09:58:09 UTC (rev 10069)
@@ -1,3 +1,4 @@
+pyrex-compilation-fix
 use-ode-config
 no_bytecompilation
 useless_shebang




More information about the Python-modules-commits mailing list