[Twisted-Python] PATCH: OS X and Twisted

This patch is from a friend of mine running OS X... this still doesn't make the C extensions build, but at least it freaks out less. It's a patch to distutils. Apparently OS X doesn't have a <poll.h>, although Fink distributes one, but that installs to a non-standard location. Basically, it looks like OS X support for the C modules will be messy. --- unixccompiler.py.bak Sun Sep 1 19:17:42 2002 +++ unixccompiler.py Tue Oct 1 21:29:43 2002 @@ -98,6 +98,8 @@ (_, macros, include_dirs) = \ self._fix_compile_args(None, macros, include_dirs) pp_opts = gen_preprocess_options(macros, include_dirs) + if sys.platform == "darwin": + pp_opts += ["-traditional-cpp"] pp_args = self.preprocessor + pp_opts if output_file: pp_args.extend(['-o', output_file]) @@ -134,6 +136,8 @@ # Figure out the options for the compiler command line. pp_opts = gen_preprocess_options(macros, include_dirs) + if sys.platform == "darwin": + pp_opts += ["-traditional-cpp"] cc_args = pp_opts + ['-c'] if debug: cc_args[:0] = ['-g'] -Andrew.

On Tuesday, October 1, 2002, at 07:50 AM, Andrew Bennetts wrote:
http://www.clapper.org/software/poll/ is what I use.. I don't have fink installed anymore. -bob

On Tuesday, October 1, 2002, at 07:50 AM, Andrew Bennetts wrote:
http://www.clapper.org/software/poll/ is what I use.. I don't have fink installed anymore. -bob
participants (2)
-
Andrew Bennetts
-
Bob Ippolito