> > Bob's exactly right (as usual) and I just feel the need to rant a > little: > > This is really lame coding, and it's a pattern I see a lot: > > if ONE_WAY_TO_CHECK_FOR_ONE_THING: > do this > else: > we MUST be doing what I have on my system! > > lame, and bug prone. > > At the very least, they could have done something like: > > if sys.platform=='darwin': > if os.path.realpath(sys.executable).startswith('/System'): > # This is when Python is from Apple framework > opt.extend(["-Wl,-framework","-Wl,Python"]) > elif (Do something to actually check for fink): > opt.extend(["-lcc_dynamic","-bundle"]) > else: > raise Exception("You seem to have a python I haven't been > configured for") > else: > opt.append("-shared") > > Would that be so hard? If they had done that, at least you would have > gotten a clear message about what was wrong. > > Checking for fink could be a simple as: > os.path.realpath(sys.executable).startswith('/sw'):
Of course there is also a DarwinPorts version by maybe it doesn't matter since both the fink and darwin ports are non framework builds? _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig