[Twisted-Python] Mac OS-9 support? Does it exist?

John D. lists at webcrunchers.com
Sun Aug 3 19:01:30 EDT 2003


I just joined the mailing list.   I would have first read the archive if It was available,  thus the need to ask this to the list.

I want to use the latest Twisted 1.0.6 with my latest Python 2.3 on my Mac OS-9.   I tried to install it on the Mac ver of python,  but I'm getting all kinds of error when I drag the "setup.py" into the Mac python IDE.

I looked at the requirement of Twisted,  and it mentions we also need Encryption,  and some other utilities,  but there was nothing on the web site that says any of this works on Mac OS-9.

I looked at the source code of the "setup.py",  and I want to call your attention to this line in that module...

# Apple distributes a nasty version of Python 2.2 w/ all release builds of
# OS X 10.2 and OS X Server 10.2
BROKEN_CONFIG = '2.2 (#1, 07/14/02, 23:25:09) \n[GCC Apple cpp-precomp 6.14]'
if sys.platform == 'darwin' and sys.version == BROKEN_CONFIG:
    # change this to 1 if you have some need to compile
    # with -flat_namespace as opposed to -bundle_loader
    FLAT_NAMESPACE = 0
    BROKEN_ARCH = '-arch i386'
    BROKEN_NAMESPACE = '-flat_namespace -undefined_suppress'
    import distutils.sysconfig
    distutils.sysconfig.get_config_vars()
    x = distutils.sysconfig._config_vars['LDSHARED']
    y = x.replace(BROKEN_ARCH, '')
    if not FLAT_NAMESPACE:
        e = os.path.realpath(sys.executable)
        y = y.replace(BROKEN_NAMESPACE, '-bundle_loader ' + e)
    if y != x:
        print "Fixing some of Apple's compiler flag mistakes..."
        distutils.sysconfig._config_vars['LDSHARED'] = y

     <---- rest deleted ---->

As you can see,  it appears to only support Mac OS-9 and not OS-10,  is that true?

We have a host of applications that already use Twisted,  and we want to port these applications over to the Mac OS-9,  because there is still a wide base of users (at least in this field).

Does anyone know if any effort is underway to support Mac OS-9 if the current one doesn't?

John






More information about the Twisted-Python mailing list