port select --set python26 and python27 !Headers

Rainer Müller raimue at macports.org
Sat Jun 25 14:20:51 PDT 2011

On 2011-06-08 18:52 , Bradley Giesbrecht wrote:
> This doesn't seem to work.

Agreed. I see the same error message on my installation as below.

> python26/Portfile:
> post-destroot {
>    set framewpath ${frameworks_dir}/Python.framework
>    set framewdir  ${framewpath}/Versions/${branch}
>    foreach dir { Headers Resources Python Versions/Current } {
>       file delete ${destroot}${framewpath}/${dir}
>    }

This only removes symlinks which are supposed to be created by 'port

> python26/files/python26:
> ${frameworks_dir}/Python.framework/Versions/2.6/Headers
> ${frameworks_dir}/Python.framework/Versions/2.6/Resources
> ${frameworks_dir}/Python.framework/Versions/2.6/Python

A directory 'Headers' did exist in previous versions of the port. I have no
idea why this will not be created anymore...

> $ sudo port select --set python python26
> Selecting 'python26' for 'python' failed: could not create new link "/opt/local/Library/Frameworks/Python.framework/Headers": target "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Headers" doesn't exist


More information about the macports-users mailing list