[MacPorts] #28479: gobject-introspection 0.9.12 FTB with Python 3 selected

MacPorts noreply at macports.org
Sat Feb 19 11:44:18 PST 2011


#28479: gobject-introspection 0.9.12 FTB with Python 3 selected
-------------------------------+--------------------------------------------
 Reporter:  gale@…             |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  1.9.2                                
 Keywords:  python3, autoconf  |        Port:  gobject-introspection                
-------------------------------+--------------------------------------------
 With python 3.2 selected as the default python version using python-
 select:

 {{{
 $ sudo port upgrade atk
 --->  Computing dependencies for gobject-introspection
 --->  Configuring gobject-introspection
 Error: Target org.macports.configure returned: configure failure: shell
 command failed (see log for details)
 }}}

 And then from the log:

 {{{
 :info:configure checking whether Python support is requested... checking
 for a Python interpreter with version >= 2.5... python
 :info:configure checking for python... /opt/local/bin/python
 :info:configure checking for python version... 3.2
 :info:configure checking for python platform... darwin
 :info:configure checking for python script directory...
 ${prefix}/lib/python3.2/site-packages
 :info:configure checking for python extension module directory...
 ${exec_prefix}/lib/python3.2/site-packages
 :info:configure checking for headers required to compile python
 extensions...   File "<string>", line 1
 :info:configure     import sys; print sys.prefix
 :info:configure                         ^
 :info:configure SyntaxError: invalid syntax
 :info:configure   File "<string>", line 1
 :info:configure     import sys; print sys.exec_prefix
 :info:configure                         ^
 :info:configure SyntaxError: invalid syntax
 :info:configure not found
 :info:configure configure: error: Python headers not found
 }}}

 This appears to be a problem with an autoconf script.
 The script in question could easily be fixed to work with
 all versions of python by adding parens:
 {{{
 import sys; print(sys.prefix)
 import sys; print(sys.exec_prefix)
 }}}

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


More information about the macports-tickets mailing list