In site-packages there's only one .pth file named PIL.pth, mentioning only 
PIL, but it  doesn't prevent pypy from importing other modules from there:

$ ls /home/wsgi/pypy-1.5/site-packages/

Cheetah/
Cheetah-2.4.2.1.egg-info/
django/
Django-1.2.3.egg-info
flup/
flup-1.0.2.egg-info/
lsb_release.py
mx/
PIL/
PIL.pth
psycopg2/
psycopg2-2.2.1.egg-info
web/
web.py-0.34.egg-info


And here's  what I've got with pypy:

$ ./pypy
Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
[PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``ECOOP is finished''
>>>> import web.wsgi
>>>> dir (web.wsgi)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', 
'_is_dev_mode', 'http', 'httpserver', 'listget', 'os', 'runfcgi', 'runscgi', 
'runwsgi', 'sys', 'validaddr', 'validip', 'web']
>>>> import django
>>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name__', 
'__package__', '__path__', 'get_version']
>>>> import psycopg2
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/wsgi/pypy-1.5/site-packages/psycopg2/__init__.py", line 69, in 
<module>
    from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: No module named _psycopg
>>>>


So it seems like pypy has problems with importing packages - not only with 
django... 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/H7pVoGsFciEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to