python.include setting?

Michael Dickens michaelld at macports.org
Tue Apr 9 10:44:00 PDT 2013


> Here's goes my rusty Tcl-ese: we're doing a glob for pythonX.Y*, which is
> good. But why the nested if/then? Either we found something or didn't.

This switch -must- return some value; it cannot throw an error. If the
"glob" succeeds, return the first item that it found; otherwise, return
a reasonable guess as to what the item will be -- believing that the
correct version of Python will be installed before this port is, and
hence the sometime in the future this switch will return a valid value.
It is probably not necessary when the "glob" fails to return different
values depending on the python.version, but it also won't hurt. - MLD


More information about the macports-dev mailing list