mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
diff --git a/setup.py b/setup.py
|
|
index 07af0b6..6426b22 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -2030,10 +2030,18 @@ class PyBuildExt(build_ext):
|
|
if not self.verbose:
|
|
config_args.append("-q")
|
|
|
|
+
|
|
+ #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):
|