Python has had a scattered history with OS X releases, making it a problematic target. Snow Leopard brings Python up-to-date, but it unfortunately creates compatibility issues with cross-platform graphical frameworks.<br><br>

One of the things that's being debated for C-Turtle is how to package Python this time around. The options are:<br><br>1) status quo: py25-* packages via MacPorts<br>2) py26-* packages via MacPorts<br>3) easy_install for all Python packages, use system installation of Python<br>

<br>I'm starting to lean towards #3, based on the fact that I've experienced numerous Python regressions with the MacPorts packages (e.g. ipython and readline), but feedback is always welcome. I would like a solution that works well with both 10.5 and 10.6, though the large discontinuity between those OSX releases makes maintaining both difficult (even from a Python perspective).<br>

<br> - Ken<br><br><div class="gmail_quote">On Mon, May 10, 2010 at 9:56 AM, Nicholas Butko <span dir="ltr"><<a href="mailto:nbutko@ucsd.edu">nbutko@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Out of curiosity, what is the reason why ROS prefers MacPorts' version of Python to the OSX distribution?<br>
<br>
Sorry if this has been discussed before.<br>
<br>
--Nick<br>
<div><div></div><div class="h5"><br>
On May 10, 2010, at 8:19 AM, Brian Gerkey wrote:<br>
<br>
> On Mon, May 10, 2010 at 7:58 AM, Dan Lazewatsky<br>
> <<a href="mailto:lazewatskyd@cse.wustl.edu">lazewatskyd@cse.wustl.edu</a>> wrote:<br>
>> That's what I figured. Any idea how to tell OpenCV to build with a<br>
>> different version of Python?<br>
><br>
> If memory serves, I did it in the manner recommended in the wiki<br>
> (<a href="http://www.ros.org/wiki/ROS/Installation/OSX" target="_blank">http://www.ros.org/wiki/ROS/Installation/OSX</a>):<br>
>  sudo ln -s /opt/local/Library/Frameworks/Python.framework /Library/Frameworks/<br>
><br>
> The intent is to make the compiler prefer the MacPorts installation of<br>
> Python when it's given '-framework Python'.  The note below that<br>
> command indicates that we don't believe it to be the right solution:<br>
><br>
> "Note: The symlink step above can fail if you have a system<br>
> installation of a Python framework (which can happen with more recent<br>
> versions of OS X). Also, this is probably not the right way to adjust<br>
> the way that frameworks are located. We invite advice and ideas from<br>
> OS X users on this issue."<br>
><br>
> A bit of googling suggests the use the DYLD_FRAMEWORK_PATH environment<br>
> variable to change the linker's search path (see the man page for<br>
> dyld).  If you can make this work (e.g., setting<br>
> DYLD_FRAMEWORK_PATH=/opt/local/Library/Frameworks before building<br>
> OpenCV), please update the ROS OSX installation page.<br>
><br>
>       brian.<br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>