[Python-modules-commits] r19855 - in packages/python-gd/trunk/debian/patches (02_setup.diff)
jump-guest at users.alioth.debian.org
jump-guest at users.alioth.debian.org
Tue Jan 3 05:07:42 UTC 2012
Date: Tuesday, January 3, 2012 @ 05:07:38
Author: jump-guest
Revision: 19855
Remove 02_setup.diff for not override CFLAGS
Deleted:
packages/python-gd/trunk/debian/patches/02_setup.diff
Deleted: packages/python-gd/trunk/debian/patches/02_setup.diff
===================================================================
--- packages/python-gd/trunk/debian/patches/02_setup.diff 2012-01-02 23:55:23 UTC (rev 19854)
+++ packages/python-gd/trunk/debian/patches/02_setup.diff 2012-01-03 05:07:38 UTC (rev 19855)
@@ -1,47 +0,0 @@
-Description: Avoid linking with thread library and find all libraries.
-Forwarded: no
-Author: Julián Moreno Patiño <darkjunix at gmail.com>
-Last-Update: 2011-07-26
---- a/Setup.py
-+++ b/Setup.py
-@@ -1,11 +1,16 @@
- # Setup for gdmodule 0.50 and later
-
- from distutils.core import setup, Extension
-+from distutils import sysconfig
- import os, glob, sys, string
-
- # version of this gdmodule package
- this_version = "0.56"
-
-+# Define overrides of CC and LDSHARED
-+CC = 'gcc'
-+LDSHARED = ' -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
-+
- # directory existence tester
-
- def dirtest(lst):
-@@ -62,7 +67,7 @@
- "ttf", "freetype",
- ]
-
--libs = filetest(libdirs, want_libs)
-+libs = want_libs
-
- missing = []
-
-@@ -98,6 +103,14 @@
- for l in libs:
- macros.append(( "HAVE_LIB%s" % l.upper(), None ))
-
-+given_cc = sysconfig.get_config_var('CC')
-+if given_cc != CC and given_cc[0] != '/':
-+ try:
-+ sysconfig._config_vars['CC'] = CC
-+ sysconfig._config_vars['LDSHARED'] = CC + LDSHARED
-+ except AttributeError:
-+ pass
-+
- # OK, now do it!
-
- setup(name="gdmodule", version=this_version,
More information about the Python-modules-commits
mailing list