Il giorno 29/set/2011, alle ore 15:50, elffikk ha scritto:

> hi,
> 
> sqlite 3.7+ supports better concurrency (see 
> http://www.sqlite.org/draft/wal.html),
> on webfaction, there are multiple python versions installed,  but
> python2.7 is built against 3.3.6
> so I built from sources sqlite, python 2.7 and now on /home/my_user/
> bin/python2.7  I can use latest sqlite
> 
>> import sqlite3
>> sqlite3.sqlite_version
> 
> shows 3.7+
> 
> if I run
> /home/my_user/bin/python2.7 web2py.py
> sqlite3.sqlite_version is 3.7
> 
> but if I run uwsgi the way I described in other posts it seems to see
> the standard one (3.3.6)
> 
> also I put in uwsgihandler.py first line to be  #!/home/my_user/bin/
> python2.7
> 
> and my question is: how I can enforce to use sqlite 3.7 (is it because
> it uses the default installed python 2.7)
> 
> 

uWSGI is not a python app, so you have to tell it where your alternative 
libpython.so is located

LD_LIBRARY_PATH=/home/my_user/lib uwsgi …..

should be enough

but if you want to avoid messing with library search path you can rebuild uwsgi 
for the new python:

(in the uwsgi sources dir)

/home/my_user/bin/python2.7 uwsgiconfig.py --build

another solution is installing setuptools/pip in the new environment and 
install uWSGI from it:

/home/my_user/bin/pip install uwsgi

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

Reply via email to