[PyPy-issue] [issue705] `import site` fails in 1.5 on OSX

Albert Zeyer pypy-dev-issue at codespeak.net
Sun May 1 14:48:18 CEST 2011

New submission from Albert Zeyer <albzey at gmail.com>:

%pypy -S
Python 2.7.1 (b590cf6de419, Apr 30 2011, 03:30:00)
[PyPy 1.5.0-alpha0 with GCC 4.0.1] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``"The HHU campus is a good Quake
level" - Armin''
>>>> import site
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Library/Python/2.6/site-packages/site.py", line 73, in <module>
  File "/Library/Python/2.6/site-packages/site.py", line 33, in __boot
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/site.py", line 571, in <module>
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/site.py", line 553, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/site.py", line 270, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/site.py", line 245, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/site.py", line 235, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/sysconfig.py", line 415, in get_config_var
    return get_config_vars().get(name)
  File "/usr/local/Cellar/pypy/1.5/lib-python/modified-2.7/sysconfig.py", line 372, in get_config_vars
    flags = _CONFIG_VARS[key]
KeyError: 'LDFLAGS'

effort: ???
messages: 2462
nosy: albert, pypy-issue
priority: critical
release: ???
status: unread
title: `import site` fails in 1.5 on OSX

PyPy development tracker <pypy-dev-issue at codespeak.net>

More information about the Pypy-issue mailing list