[CalendarServer-changes] [12902] CalendarServer/trunk/bin/_build.sh

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 13 16:04:23 PDT 2014


Revision: 12902
          http://trac.calendarserver.org//changeset/12902
Author:   wsanchez at apple.com
Date:     2014-03-13 16:04:22 -0700 (Thu, 13 Mar 2014)
Log Message:
-----------
Work around Xcode update breaking python extensions.

Modified Paths:
--------------
    CalendarServer/trunk/bin/_build.sh

Modified: CalendarServer/trunk/bin/_build.sh
===================================================================
--- CalendarServer/trunk/bin/_build.sh	2014-03-13 22:26:56 UTC (rev 12901)
+++ CalendarServer/trunk/bin/_build.sh	2014-03-13 23:04:22 UTC (rev 12902)
@@ -595,6 +595,16 @@
 
   "${python}" "${wd}/setup.py" check > /dev/null;
 
+  # Work around a change in Xcode tools that breaks Python modules in OS X
+  # 10.9.2 and prior due to a hard error if the -mno-fused-madd is used, as
+  # it was in the system Python, and is therefore passed along by disutils.
+  if [ "$(uname -s)" == "Darwin" ]; then
+    if "${python}" -c 'import distutils.sysconfig; print distutils.sysconfig.get_config_var("CFLAGS")' \
+       | grep -e -mno-fused-madd; then
+      export CFLAGS="";
+    fi;
+  fi;
+
   for requirements in "${wd}/requirements/py_"*".txt"; do
 
     ruler "Preparing Python requirements: ${requirements}";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140313/d1aeacc8/attachment-0001.html>


More information about the calendarserver-changes mailing list