On 3/11/07, Valentino Volonghi <dialtone@gmail.com> wrote:
and here's the setup.py:
#!/usr/bin/python import sys, os from os.path import join from distutils.core import setup from distutils.extension import Extension from distutils import sysconfig
# break abstraction to set g++ as linker - is there better way? sysconfig._init_posix() compiler = "g++ -ftemplate-depth-50" #compiler += " -fkeep-inline-functions" # for debugging
# workaround for bugs in Redhat 7.3 compiler if os.popen("g++ --version").read().strip() == "2.96": compiler += " -fno-inline "
sysconfig._config_vars["CC"] = compiler if sys.platform == 'darwin': sysconfig._config_vars["LDSHARED"] = "g++ -undefined dynamic_lookup" else: sysconfig._config_vars["LDSHARED"] = "g++ -shared"
Ok, I guess this code (that I took from another example) didn't actually work at all. Removing it fixes many of the problems except a RuntimeWarning: /Users/dialtone/.pythonstartup.py:1: RuntimeWarning: Python C API version mismatch for module _reactor: This Python has API version 1013, module _reactor has version 1012. I guess this is because python 2.5 was released after boost 1.33. Thanks for all anyway :) -- Valentino Volonghi aka Dialtone Now running MacOS X 10.4 TechBlog: http://vvolonghi.blogspot.com Home Page: http://www.twisted.it