mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
diff -Naur Python-2.7.2/setup.py Python-2.7.2.patch/setup.py
|
|
--- Python-2.7.2/setup.py 2011-10-26 01:53:16.014387508 +0200
|
|
+++ Python-2.7.2.patch/setup.py 2011-10-26 02:20:08.236706196 +0200
|
|
@@ -1877,12 +1877,18 @@
|
|
ffi_configfile):
|
|
from distutils.dir_util import mkpath
|
|
mkpath(ffi_builddir)
|
|
- config_args = []
|
|
+
|
|
+ #NOTE: best solution is to add to configure script
|
|
+ # as config subdirectory and to exclude darwin
|
|
+ # (see configure_ctypes_darwin).
|
|
+ #FIXME: lets for now pass all top configure arguments
|
|
+ #and do not modify configure script.
|
|
+ config_args = sysconfig.get_config_var("CONFIG_ARGS")
|
|
|
|
# Pass empty CFLAGS because we'll just append the resulting
|
|
# CFLAGS to Python's; -g or -O2 is to be avoided.
|
|
cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \
|
|
- % (ffi_builddir, ffi_srcdir, " ".join(config_args))
|
|
+ % (ffi_builddir, ffi_srcdir, config_args)
|
|
|
|
res = os.system(cmd)
|
|
if res or not os.path.exists(ffi_configfile):
|