diff options
author | drebs <drebs@riseup.net> | 2017-09-28 15:38:24 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-09-28 15:38:24 -0300 |
commit | b7812ea26162b5b24b27dab42d2bf89964fd39e2 (patch) | |
tree | 7959bc50fe623e7ca17ad0d3ac2a205fae412656 /setup.py | |
parent | 3a52f2a88a5423d1e8d76bb704d0164c9726fd07 (diff) |
[doc] mock the pysqlcihper module on readthedocs
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -17,6 +17,7 @@ """ Setup file for leap.soledad """ +import os import re import sys import versioneer @@ -83,10 +84,12 @@ client = [ ] # needed until kali merges the py3 fork back into the main pysqlcipher repo -if sys.version_info.major >= 3: - client += ['pysqlcipher3'] -else: - client += ['pysqlcipher'] +readthedocs = bool(os.environ.get('READTHEDOCS')) +if not readthedocs: + if sys.version_info.major >= 3: + client += ['pysqlcipher3'] + else: + client += ['pysqlcipher'] server = [ 'configparser', |