[Twisted-Python] PATCH: OS X and Twisted
Andrew Bennetts
andrew-twisted at puzzling.org
Tue Oct 1 05:50:36 MDT 2002
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.
More information about the Twisted-Python
mailing list