Ticket #28479 (closed defect: fixed)
gobject-introspection 0.9.12 FTB with Python < 2.5 or >= 3 selected
| Reported by: | gale@… | Owned by: | singingwolfboy@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | nhoj.patrick@… | |
| Port: | gobject-introspection |
Description
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)
Change History
Note: See
TracTickets for help on using
tickets.

