File: 000-Handle_env_CFLAGS_var.dpatch

package info (click to toggle)
python-yenc 0.3%2Bdebian-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 188 kB
  • ctags: 93
  • sloc: python: 388; ansic: 375; makefile: 45; sh: 21
file content (31 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh /usr/share/dpatch/dpatch-run
## 000-Handle_env_CFLAGS_var.dpatch
## by Adam Cécile (Le_Vert) <gandalf@le-vert.net>
##
## DP: Do not auto-probe CFLAGS, and use which are passed in environment.

@DPATCH@

diff -u python-yenc-0.3~debian/setup.py python-yenc-0.3~debian/setup.py.new
--- python-yenc-0.3~debian/setup.py	2007-04-11 17:30:42.000000000 +0200
+++ python-yenc-0.3~debian/setup.py.new	2007-04-11 17:35:25.000000000 +0200
@@ -28,6 +28,11 @@
 
 from distutils.core import setup, Extension
 
+# We don't want any "auto-defined" CFLAGS
+from distutils import sysconfig
+sysconfig.get_config_vars()["CFLAGS"] = ''
+sysconfig.get_config_vars()["OPT"] = ''
+
 setup(	
 	name		= "yenc",
 	version		= "0.3",
@@ -38,6 +43,6 @@
 	license		= "GPL",
 	package_dir	= { '': 'lib' },
 	py_modules	= ["yenc"],
-	ext_modules	= [Extension("_yenc",["src/_yenc.c"],extra_compile_args=["-O2","-g"])]
+	ext_modules	= [Extension("_yenc",["src/_yenc.c"],extra_compile_args=[])]
 	)