[PyObjC-svn] r2250 - trunk/pyobjc/pyobjc-framework-SystemConfiguration

[email protected] Tue, 26 May 2009 04:51:41 -0500
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Tue May 26 04:51:41 2009
New Revision: 2250

Log:
enable building with python.org tree

Modified:
   trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py

Modified: trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py	(original)
+++ trunk/pyobjc/pyobjc-framework-SystemConfiguration/setup.py	Tue May 26 04:51:41 2009
@@ -16,6 +16,12 @@
     extra_cmdclass = {}
     extra_options = lambda name: {}
 
+import os
+if os.uname()[2] >= '9.':
+    CFLAGS=['-isysroot','/']
+else:
+    CFLAGS=[]
+
 setup(
     name='pyobjc-framework-SystemConfiguration',
     version='2.2b2',
@@ -37,6 +43,7 @@
     ext_modules = [
         Extension('SystemConfiguration._manual',
                  [ 'Modules/_manual.m' ],
+                 extra_compile_args=CFLAGS,
         ),
     ],
     test_suite='PyObjCTest',

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com