Skip to content
Snippets Groups Projects
Commit 8be7ef63 authored by Damian Johnson's avatar Damian Johnson
Browse files

Provide sqlite3 intructions for Gentoo

Message thanks to Toralf.
parent 4bfe05dc
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,11 @@ don't bundle this with the interpreter. Please let us know at... ...@@ -66,6 +66,11 @@ don't bundle this with the interpreter. Please let us know at...
https://trac.torproject.org/projects/tor/wiki/doc/nyx/bugs https://trac.torproject.org/projects/tor/wiki/doc/nyx/bugs
""" """
SQLITE_UNAVAILABLE_GENTOO = """\
Python's sqlite3 module is unavailable. For Gentoo please run
emerge dev-lang/python with USE=sqlite.
"""
SQLITE_UNAVAILABLE_FREEBSD = """\ SQLITE_UNAVAILABLE_FREEBSD = """\
Python's sqlite3 module is unavailable. Please run... Python's sqlite3 module is unavailable. Please run...
...@@ -75,7 +80,9 @@ Python's sqlite3 module is unavailable. Please run... ...@@ -75,7 +80,9 @@ Python's sqlite3 module is unavailable. Please run...
try: try:
import sqlite3 import sqlite3
except ImportError: except ImportError:
if stem.util.system.is_bsd(): if stem.util.system.is_gentoo():
print(SQLITE_UNAVAILABLE_GENTOO)
elif stem.util.system.is_bsd():
print(SQLITE_UNAVAILABLE_FREEBSD) print(SQLITE_UNAVAILABLE_FREEBSD)
else: else:
print(SQLITE_UNAVAILABLE) print(SQLITE_UNAVAILABLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment