[yt-users] Merger Tree
Rick Wagner
rwagner at physics.ucsd.edu
Thu Jul 8 14:57:51 PDT 2010
Hi,
I'm kind of curious about this myself, since I can find a line in the setup.py file file like:
os.path.join(sqlite_incdir, '..', 'lib64'
and I have yt-built Python installations on Thresher and Triton, both of which keep SQLite in /usr/lib64.
Brian, do you know the operating system or distribution you building on? There's a chance we'll have a machine we can test replicating the problem on.
--Rick
On Jul 8, 2010, at 2:52 PM, Matthew Turk wrote:
> Stephen,
>
> Earlier in the thread Brian said that he was able to find sqlite3 in
> /usr/lib64 and /usr/lib64. Why is the _sqlite3 module not finding
> what it needs in the systemwide installation?
>
> Is there any possible way to refactor the code to avoid using sqlite3
> as a required dependency?
>
> -Matt
>
> On Thu, Jul 8, 2010 at 2:48 PM, Stephen Skory <stephenskory at yahoo.com> wrote:
>> Hi Brian,
>>
>> inside the Python source directory, there should be a 'setup.py' file. Inside
>> that, find a section that looks like this (it was around line 888 for me), and
>> add the location of where you installed sqlite to the 'sqlite_inc_paths'. You
>> can see where I added my dir for Ranger below, which is
>>
>> not world-readbable right now so it probably won't work. After adding this, run
>> "python setup.py build" and then
>> re-make Python, and you should not get the _sqlite in the warning section.
>>
>> # We hunt for #define SQLITE_VERSION "n.n.n" # We need to find >= sqlite
>> version 3.0.8 sqlite_incdir = sqlite_libdir = None
>> sqlite_inc_paths = ['/share/home/00649/tg457850/sqlite/include',
>> '/usr/include', '/usr/include/sqlite',
>> '/usr/include/sqlite3', '/usr/local/include',
>> '/usr/local/include/sqlite',
>> '/usr/local/include/sqlite3', ]
>> MIN_SQLITE_VERSION_NUMBER = (3, 0, 8) MIN_SQLITE_VERSION =
>> ".".join([str(x) for x in
>> MIN_SQLITE_VERSION_NUMBER]) _______________________________________________________
>>
>> sskory at physics.ucsd.edu o__ Stephen Skory
>> http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
>> ________________________________(_)_\(_)_______________
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
More information about the yt-users
mailing list