port select --set python26 and python27 !Headers

Bradley Giesbrecht pixilla at macports.org
Wed Jun 8 09:52:55 PDT 2011


This doesn't seem to work.

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}
   }

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


$ 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


Regards,
Bradley Giesbrecht (pixilla)






More information about the macports-users mailing list