[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #24173 [Core Tor/Nyx]: nyx-2.0.4: setup.py doesn't list sqlite3 as a dependency



#24173: nyx-2.0.4: setup.py doesn't list sqlite3 as a dependency
--------------------------+--------------------------
 Reporter:  yurivict271   |          Owner:  (none)
     Type:  defect        |         Status:  reopened
 Priority:  Medium        |      Milestone:
Component:  Core Tor/Nyx  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+--------------------------

Comment (by atagar):

 Again, the trouble is that pip does not account for builtins. It only
 knows about pip managed packages. Here on Ubuntu (and most platforms)
 sqlite3 is built in, yet if I run 'pip install pysqlite' it still attempts
 to install it and I'm unsure if that's safe.

 If you'd like we could try a conditional dependency...

 {{{
 'dependencies = ['stem'] if SQLITE_AVAILABLE else ['stem', 'pysqlite']
 }}}

 But quick look around seems to indicate there be dragons...

 https://hynek.me/articles/conditional-python-dependencies/

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24173#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs