[MacPorts] #29928: Python 2.6 goocanvas library doesn't work?

MacPorts noreply at macports.org
Sat Jun 25 03:07:30 PDT 2011


#29928: Python 2.6 goocanvas library doesn't work?
--------------------------------+-------------------------------------------
 Reporter:  dgonyier@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.2                                
 Keywords:                      |        Port:  py26-goocanvas                       
--------------------------------+-------------------------------------------

Comment(by afb@…):

 py26-goocanvas installs to the naive location:
 {{{
 /opt/local/lib/python2.6/site-packages
 }}}
 But python26 only looks in the framework location:
 {{{
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages
 }}}

 The failing auto-fu is:
 {{{
      am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig;
 print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install
 $py_exec_prefix_arg 2>/dev/null ||
      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 }}}

 Since distutils doesn't work with "prefix":
 {{{
 $ py_exec_prefix_arg=""
 $ /opt/local/bin/python2.6 -c "from distutils import sysconfig; print
 sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install
 $py_exec_prefix_arg
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages
 $ py_exec_prefix_arg=",prefix='/opt/local'"
 $ python -c "from distutils import sysconfig; print
 sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install
 $py_exec_prefix_arg
 /opt/local/lib/python2.6/site-packages
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/29928#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list