[Python-Dev] Distutils and -framework on MacOSX
Has anyone found a way of persuading distutils to pass MacOSX -framework options properly when linking? Using extra_link_args doesn't work, because they need to be at the beginning of the command line to work properly, but extra_link_args gets put at the end. And extra_compile_args is only used when compiling, not linking. -- Greg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Distutils and -framework on MacOSX
On 29 Mar, 2007, at 11:37, Greg Ewing wrote: Has anyone found a way of persuading distutils to pass MacOSX -framework options properly when linking? Using extra_link_args doesn't work, because they need to be at the beginning of the command line to work properly, but extra_link_args gets put at the end. And extra_compile_args is only used when compiling, not linking. What's wrong with adding -framework flags to the end? I do this all the time and have yet to run into problems. Ronald smime.p7s Description: S/MIME cryptographic signature ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Distutils and -framework on MacOSX
Ronald Oussoren wrote: > What's wrong with adding -framework flags to the end? I do this all the > time and have yet to run into problems. I don't know what's wrong. Sometimes it works for me too, but often it doesn't, and when it doesn't, putting them at the front seems to fix it. Apple's man page for ld says that placement of the -framework options is important... but doesn't say anything about where they're supposed to be. Not very helpful. I'd be very grateful if anyone could shed some light on this. It causes me no end of hassles whenever I try to compile an extension. -- Greg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Distutils and -framework on MacOSX
On 30 Mar, 2007, at 7:27, Greg Ewing wrote: > Ronald Oussoren wrote: > >> What's wrong with adding -framework flags to the end? I do this >> all the time and have yet to run into problems. > > I don't know what's wrong. Sometimes it works for me too, > but often it doesn't, and when it doesn't, putting them > at the front seems to fix it. Could you create an example where adding -framework to the end of the command-line doesn't work? BTW. I'm asking around for a more definitive statement on how - framework arguments are interpreted. Ronald ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Distutils and -framework on MacOSX
Ronald Oussoren wrote: > Could you create an example where adding -framework to the end of the > command-line doesn't work? I'll see what I can do. -- Greg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com