Darwin build error with MacPorts Python 2.7.1 installed.

Santoso Wijaya santoso.wijaya at gmail.com
Wed Mar 2 03:41:41 EST 2011


Hi,

I recently tried to play around with the latest source for Python-2.7.1, and
I came across this build error while trying to build a clean checkout (after
`./configure`, of course):

bash-3.2$ make
./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
Traceback (most recent call last):
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
line 553, in
    main()
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
line 535, in main
    known_paths = addusersitepackages(known_paths)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
line 268, in addusersitepackages
    user_site = getusersitepackages()
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
line 243, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
line 233, in getuserbase
    USER_BASE = get_config_var('userbase')
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py",
line 535, in get_config_var
    return get_config_vars().get(name)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py",
line 434, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py",
line 313, in _init_posix
    raise
IOError(msg) IOError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.4" but
"10.6" during configure
make: *** [Include/Python-ast.h] Error 1

I am using MacPorts with the latest updates. Any thoughts?

Thanks,
~/santa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110302/8cdbcc8d/attachment.html>


More information about the Python-list mailing list