[pypy-issue] [issue1572] py3k: import site-packages at startup
Renaud Blanch
tracker at bugs.pypy.org
Thu Aug 1 15:26:24 CEST 2013
New submission from Renaud Blanch <rndblnch at gmail.com>:
pypy3 does not import packages installed into site-packages on Mac OS X 10.8 (presumably due to a
misconfigured site.USER_SITE):
[esperluet:~] blanch% ../Shared/src/pypy3-2.1-beta1-osx64/bin/pypy
Python 3.2.3 (d63636b30cc0, Jul 30 2013, 07:02:48)
[PyPy 2.1.0-beta1 with GCC 4.2.1 Compatible Clang Compiler] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``pypy is a race between the
industry trying to build machines with more and more resources, and the pypy
developers trying to eat all of them. So far, the winner is still unclear''
>>>> import sys
>>>> assert any(path.endswith("site-packages") for path in sys.path)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
>>>> sys.path
['', '/Users/Shared/src/pypy3-2.1-beta1-osx64/lib_pypy/__extensions__', '/Users/Shared/src/pypy3-
2.1-beta1-osx64/lib_pypy', '/Users/Shared/src/pypy3-2.1-beta1-osx64/lib-python/3',
'/Users/Shared/src/pypy3-2.1-beta1-osx64/lib-python/3/lib-tk', '/Users/Shared/src/pypy3-2.1-beta1-
osx64/lib-python/3/plat-darwin', '/Users/Shared/src/pypy3-2.1-beta1-osx64/lib-python/3/plat-mac',
'/Users/Shared/src/pypy3-2.1-beta1-osx64/lib-python/3/plat-mac/lib-scriptpackages']
>>>> import site
>>>> site.USER_SITE
'/Users/blanch/.local/lib/python3.2/site-packages'
>>>> import os
>>>> os.path.exists(site.USER_SITE)
False
----------
messages: 6019
nosy: pypy-issue, rndblnch
priority: bug
status: unread
title: py3k: import site-packages at startup
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1572>
________________________________________
More information about the pypy-issue
mailing list